/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Esta es la clase principal de la aplicación
 * 
 * Ventana.java
 *
 * Created on 10-jul-2012, 20:01:26
 */
package ui;

import controladores.Conexiones;
import controladores.Controlador;
import java.awt.Color;
import java.io.File;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import javax.swing.JFileChooser;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.filechooser.FileSystemView;
import modelo.Causa;
import modelo.DocumentosRelacionadosTramite;
import modelo.Movimiento;
import modelo.PasoProcesal;
import modelo.Persona;
import modelo.Tarea;
import modelo.TiposDeCausa;
import modelo.Tramite;
import org.jawin.DispatchPtr;
import org.jawin.win32.Ole32;
import java.awt.Image;
import java.awt.Toolkit;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import javax.swing.JDialog;

/**
 *
 * @author nahuel
 */
public class Ventana extends javax.swing.JFrame {

    private Persona apoderadoCausa;
    private Persona contraparteCausa;
    private Persona clienteCausa;
    private Persona contraparteCausa1;
    private PasoProcesal pasoProcesal;
    private TiposDeCausa tiposDeCausa;
    private ArrayList<TiposDeCausa> listaTipos;
    private List<DocumentosRelacionadosTramite> listaDocumentosRelacionadosTramiteTarea;
    private Date fechaCambioTarea;

    /** Creates new form Ventana */
    public Ventana() {
        if (this.controlador.testearConexion()) {
            initComponents();
            this.setExtendedState(MAXIMIZED_BOTH);
            this.jDialogAgregarTramite.setLocationRelativeTo(this);
            this.jDialogAgregarTarea.setLocationRelativeTo(this);
            this.jDialogEliminarTramite.setLocationRelativeTo(this);
            this.jDialogEliminarTarea.setLocationRelativeTo(this);
            this.jDialogError.setLocationRelativeTo(this);
            this.jDialogAltaPersona.setLocationRelativeTo(this);
            this.jDialogAdvertencia.setLocationRelativeTo(this);
            this.jDialogBajaPersona.setLocationRelativeTo(this);
            this.jDialogConsultaPersona.setLocationRelativeTo(this);
            this.jDialogEliminarMovimiento.setLocationRelativeTo(this);
            this.jDialogConfirmacion.setLocationRelativeTo(this);
            this.jDialogAgregarMovimiento.setLocationRelativeTo(this);
            this.jDialogBuscarApoderadoTramite.setLocationRelativeTo(this);
            this.jDialogBuscarClienteTramite.setLocationRelativeTo(this);
            this.jDialogAltaCausa.setLocationRelativeTo(this);
            this.jDialogBuscarApoderadoTarea.setLocationRelativeTo(this);
            this.jDialogAlertaAgenda.setLocationRelativeTo(this);
            this.jDialogBuscarApoderadoCausa.setLocationRelativeTo(this);
            this.jDialogBuscarClienteCausa.setLocationRelativeTo(this);
            this.jDialogBuscarContraparteCausa.setLocationRelativeTo(this);
            this.jDialogBuscarAbogadoContraparteCausa.setLocationRelativeTo(this);
            this.jDialogConsultaCausa.setLocationRelativeTo(this);
            this.jDialogAgregarPasoProcesal.setLocationRelativeTo(this);
            this.jDialogConfirmacionBajaCausa.setLocationRelativeTo(this);
            this.jDialogEliminarDocumentoRelacionadosTramite.setLocationRelativeTo(this);
            this.jDialogEliminarDocumentosRelacionadosTarea.setLocationRelativeTo(this);
            this.jDialogNombreRutaDocumento.setLocationRelativeTo(this);
            this.jDialogNombreRutaDocumentoTarea.setLocationRelativeTo(this);
            this.jDialogNombreRutasDocumentosPaso.setLocationRelativeTo(this);
            this.jDialogEliminarDocumentoRelacionadoPasoTramite.setLocationRelativeTo(this);
            this.jDialogMovimientoPersona.setLocationRelativeTo(this);
            this.jDialogEliminarMovimiento2.setLocationRelativeTo(this);
            this.jDialogModificarMovimiento.setLocationRelativeTo(this);
            this.jDialogConfirmacionEliminarPaso.setLocationRelativeTo(this);
            this.jDialogConsultaPasoProcesal.setLocationRelativeTo(this);
            this.jDialogEliminarPasoTramite.setLocationRelativeTo(this);
            this.jDialogEliminarDocumentoRelacionadosPaso.setLocationRelativeTo(this);
            this.jDialogNombreRutaDocumentoPasoCausa.setLocationRelativeTo(this);
        } else {
            this.initComponents2();                     
        }
        
    }
    
    private void jButtonAceptarErrorBDActionPerformed(java.awt.event.ActionEvent evt) {
        System.exit(0);
    }
    
    private void initComponents2() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jButtonAceptarError = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Error");
        setAlwaysOnTop(true);
        setIconImage(getIconImage());

        jLabel1.setText("Se produjo un error en la conexión al servidor. ");

        jLabel2.setText("Por favor, verifique que el servidor funcione correctamente.");

        jButtonAceptarError.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAceptarError.setText("Aceptar");
        jButtonAceptarError.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarErrorBDActionPerformed(evt);
            }
        });

        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/grandes/error.png"))); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel3)
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel2)
                            .addComponent(jLabel1)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(142, 142, 142)
                        .addComponent(jButtonAceptarError)))
                .addContainerGap(19, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel3)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(11, 11, 11)
                        .addComponent(jLabel2)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonAceptarError)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jDialogAgregarTramite = new javax.swing.JDialog();
        jLabelNumeroAgregarTramite = new javax.swing.JLabel();
        jLabelFechaInicioAgregarTramite = new javax.swing.JLabel();
        jLabelFechaFinAgregarTramite = new javax.swing.JLabel();
        jLabelDescripcionAgregarTramite = new javax.swing.JLabel();
        jLabelApoderadoAgregarTramite = new javax.swing.JLabel();
        jLabelClienteAgregarTramite = new javax.swing.JLabel();
        jButtonAceptarAgregarTramite = new javax.swing.JButton();
        jButtonCancelarAgregarTramite = new javax.swing.JButton();
        jTextFieldNumeroAgregarTramite = new javax.swing.JTextField();
        jTextFieldApoderadoAgregarTramite = new javax.swing.JTextField();
        jButtonBuscarApoderadoAgregarTramite = new javax.swing.JButton();
        jTextFieldClienteAgregarTramite = new javax.swing.JTextField();
        jButtonBuscarClienteAgregarTramite = new javax.swing.JButton();
        jDateChooserFechaFinAgregarTramite = new com.toedter.calendar.JDateChooser();
        jDateChooserFechaInicioAgregarTramite = new com.toedter.calendar.JDateChooser();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTextAreaDescripcionAgregarTramite = new javax.swing.JTextArea();
        jButtonModificarAgregarTramite = new javax.swing.JButton();
        jButtonGuardarCambiosAgregarTramite = new javax.swing.JButton();
        jButtonEliminarTramite = new javax.swing.JButton();
        jPanelDocumentosRelacionadoTramite = new javax.swing.JPanel();
        jButtonAbrirDocumentoTramite = new javax.swing.JButton();
        jButtonAgregarDocumentosRelacionadosAgregarTramite = new javax.swing.JButton();
        jScrollPaneDocumentosRelacionados = new javax.swing.JScrollPane();
        jTableDocumentosRelacionadosTramites = new javax.swing.JTable();
        jButtonCrearDocumentosRelacionadosAgregarTramite = new javax.swing.JButton();
        jButtonEliminarDocumentoRelacionadoTramite = new javax.swing.JButton();
        jPanelPasosTramites = new javax.swing.JPanel();
        jScrollPane8 = new javax.swing.JScrollPane();
        jTablePasosTramites = new javax.swing.JTable();
        jButtonAgregarPasosTramite = new javax.swing.JButton();
        jDialogAgregarTarea = new javax.swing.JDialog();
        jLabelNumeroAgregarTarea = new javax.swing.JLabel();
        jLabelFechaRealizacionAgregarTarea = new javax.swing.JLabel();
        jLabelHoraAgregarTarea = new javax.swing.JLabel();
        jLabelLugarAgregarTarea = new javax.swing.JLabel();
        jLabelDescripcionAgregarTarea = new javax.swing.JLabel();
        jButtonAceptarAgregarTarea = new javax.swing.JButton();
        jButtonCancelarAgregarTarea = new javax.swing.JButton();
        jTextFieldNumeroAgregarTarea = new javax.swing.JTextField();
        jTextFieldLugarAgregarTarea = new javax.swing.JTextField();
        jDateChooserFechaRealizacionTarea = new com.toedter.calendar.JDateChooser();
        jScrollPane6 = new javax.swing.JScrollPane();
        jTextAreaDescripcionTarea = new javax.swing.JTextArea();
        jButtonModificarTarea = new javax.swing.JButton();
        jButtonGuardarModificacionTarea = new javax.swing.JButton();
        jButtonEliminarTarea = new javax.swing.JButton();
        jSpinFieldHoraTarea = new com.toedter.components.JSpinField();
        jSpinFieldMinutosTarea = new com.toedter.components.JSpinField();
        jLabelHoraTextoTarea = new javax.swing.JLabel();
        jLabelMinutosTextoTarea = new javax.swing.JLabel();
        jLabelApoderadoTarea = new javax.swing.JLabel();
        jTextFieldApoderadoTarea = new javax.swing.JTextField();
        jButtonBuscarApoderadoTarea = new javax.swing.JButton();
        jPanelDocumentosRelacionadosTarea = new javax.swing.JPanel();
        jScrollPane5 = new javax.swing.JScrollPane();
        jTableDocumentosRelacionadosTarea = new javax.swing.JTable();
        jButtonagregarDocumentosRelacionadosTrarea = new javax.swing.JButton();
        jButtonCrearDocumentosRelacionadosTarea = new javax.swing.JButton();
        jButtonAbrirDocumentoTarea = new javax.swing.JButton();
        jButtonEliminarDocumentoTarea = new javax.swing.JButton();
        jDialogEliminarTarea = new javax.swing.JDialog();
        jLabelEliminarTarea = new javax.swing.JLabel();
        jButtonSiEliminarTarea = new javax.swing.JButton();
        jButtonNoEliminarTarea = new javax.swing.JButton();
        jDialogEliminarTramite = new javax.swing.JDialog();
        jLabelEliminarTramite = new javax.swing.JLabel();
        jButtonSiEliminarTramite = new javax.swing.JButton();
        jButtonNoEliminarTramite = new javax.swing.JButton();
        jDialogError = new javax.swing.JDialog();
        jLabelTextoError = new javax.swing.JLabel();
        jButtonAceptarError = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jDialogAltaPersona = new javax.swing.JDialog();
        jLabelDatosAltaPersona = new javax.swing.JLabel();
        jTextFieldNombreAltaPersona = new javax.swing.JTextField();
        jLabelNombreAltaPersona = new javax.swing.JLabel();
        jLabelTipoDocAltaPersona = new javax.swing.JLabel();
        jComboBoxTipoDocumentoAltaPersona = new javax.swing.JComboBox();
        jLabelNroDocAltaPersona = new javax.swing.JLabel();
        jTextFieldNumeroDocumentoAltaPersona = new javax.swing.JTextField();
        jLabelDireccionAltaPersona = new javax.swing.JLabel();
        jLabelTelefonoAltaPersona = new javax.swing.JLabel();
        jLabelTelefonoAltAltaPersona = new javax.swing.JLabel();
        jLabelEmailAltaPersona = new javax.swing.JLabel();
        jLabelCodPostalAltaPersona = new javax.swing.JLabel();
        jLabelLocalidadAltaPersona = new javax.swing.JLabel();
        jButtonConfirmarAltaPersona = new javax.swing.JButton();
        jButtonCancelarAltaPersona = new javax.swing.JButton();
        jTextFieldDireccionAltaPersona = new javax.swing.JTextField();
        jTextFieldTelefonoAltaPersona = new javax.swing.JTextField();
        jTextFieldTelefono2AltaPersona = new javax.swing.JTextField();
        jTextFieldEmailAltaPersona = new javax.swing.JTextField();
        jTextFieldCodPostalAltaPersona = new javax.swing.JTextField();
        jTextFieldLocalidadAltaPersona = new javax.swing.JTextField();
        jLabelTipoPersonaAltaPersona = new javax.swing.JLabel();
        jComboBoxTipoPersonaAltaPersona = new javax.swing.JComboBox();
        jLabelAbogadoAltaPersona = new javax.swing.JLabel();
        jComboBoxAbogadoAltaPersona = new javax.swing.JComboBox();
        jLabelNroMatriculaAltaPersona = new javax.swing.JLabel();
        jTextFieldNroMatriculaAltaPersona = new javax.swing.JTextField();
        jDialogAdvertencia = new javax.swing.JDialog();
        jLabelTextoAdvertencia = new javax.swing.JLabel();
        jButtonAceptarAdvertencia = new javax.swing.JButton();
        jDialogBajaPersona = new javax.swing.JDialog();
        jLabelMensajeBajaPersona = new javax.swing.JLabel();
        jButtonNoBajaPersona = new javax.swing.JButton();
        jButtonSiBajaPersona = new javax.swing.JButton();
        jDialogConsultaPersona = new javax.swing.JDialog();
        jLabelNumDocDetallesPersona = new javax.swing.JLabel();
        jComboBoxTipoDocDetallesPersona = new javax.swing.JComboBox();
        jLabelTipoDocDetallesPersona = new javax.swing.JLabel();
        jTextFieldCodPostalDetallesPersona = new javax.swing.JTextField();
        jTextFieldLocalidadDetallesPersona = new javax.swing.JTextField();
        jLabelNombreDetallesPersona = new javax.swing.JLabel();
        jTextFieldTelefono2DetallesPersona = new javax.swing.JTextField();
        jTextFieldNombreDetallesPersona = new javax.swing.JTextField();
        jTextFieldEmailDetallesPersona = new javax.swing.JTextField();
        jLabelDatosDetallesPersona = new javax.swing.JLabel();
        jTextFieldTelefonoDetallesPersona = new javax.swing.JTextField();
        jTextFieldDireccionDetallesPersona = new javax.swing.JTextField();
        jLabelLocalidadDetallesPersona = new javax.swing.JLabel();
        jLabelCodPostalDetallesPersona = new javax.swing.JLabel();
        jLabelEmailDetallesPersona = new javax.swing.JLabel();
        jLabelTelefono2DetallesPersona = new javax.swing.JLabel();
        jTextFieldNroDocDetallesPersona = new javax.swing.JTextField();
        jLabelTelefonoDetallesPersona = new javax.swing.JLabel();
        jLabelDireccionDetallesPersona = new javax.swing.JLabel();
        jScrollPaneCausasDetallesPersona = new javax.swing.JScrollPane();
        jTableCausasDetallesPersona = new javax.swing.JTable();
        jLabelCausasDetallesPersona = new javax.swing.JLabel();
        jLabelTramitesDetallesPersona = new javax.swing.JLabel();
        jScrollPaneTramitesDetallesPersona = new javax.swing.JScrollPane();
        jTableTramitesDetallesPersona = new javax.swing.JTable();
        jButtonModificarDetallesPersona = new javax.swing.JButton();
        jButtonGuardarDetallesPersona = new javax.swing.JButton();
        jButtonCancelarDetallesPersona = new javax.swing.JButton();
        jPanelCuentaCorriente = new javax.swing.JPanel();
        jLabelCuenta = new javax.swing.JLabel();
        jScrollPaneCuentaCorriente = new javax.swing.JScrollPane();
        jTableCuentaCorriente = new javax.swing.JTable();
        jButtonAgregarMovimientoCuentaCorriente = new javax.swing.JButton();
        jPanelBuscarMovimientos = new javax.swing.JPanel();
        jTextFieldDescripcionBuscarMovimiento = new javax.swing.JTextField();
        jLabelDescripcionBuscarMovimiento = new javax.swing.JLabel();
        jLabelHaberBuscarMovimiento = new javax.swing.JLabel();
        jTextFieldHaberBuscarMovimiento = new javax.swing.JTextField();
        jTextFieldDebeBuscarMovimiento = new javax.swing.JTextField();
        jLabelDebeBuscarMovimiento = new javax.swing.JLabel();
        jLabelFechaBuscarMovimiento = new javax.swing.JLabel();
        jDateChooserFechaBuscarMovimiento = new com.toedter.calendar.JDateChooser();
        jButtonBuscarMovimiento = new javax.swing.JButton();
        jButtonDeshacerBuscarMovimiento = new javax.swing.JButton();
        jLabelTextoTotalDebe = new javax.swing.JLabel();
        jLabelTotalDebeMovimientos = new javax.swing.JLabel();
        jLabelTextoTotalHaber = new javax.swing.JLabel();
        jLabelTextoTotal = new javax.swing.JLabel();
        jLabelTotalHaberMovimientos = new javax.swing.JLabel();
        jLabelTotalMovimientos = new javax.swing.JLabel();
        jLabelTipoDetallesPersona = new javax.swing.JLabel();
        jComboBoxTipoDetallesPersona = new javax.swing.JComboBox();
        jLabelAbogadoDetallesPersona = new javax.swing.JLabel();
        jTextFieldNroMatriculaDetallesPersona = new javax.swing.JTextField();
        jComboBoxAbogadoDetallesPersona = new javax.swing.JComboBox();
        jLabelNroMatriculaDetallesPersona = new javax.swing.JLabel();
        jButtonEliminarDetallesPersona = new javax.swing.JButton();
        jDialogEliminarMovimiento = new javax.swing.JDialog();
        jButtonSiEliminarMovimiento = new javax.swing.JButton();
        jButtonNoEliminarMovimiento = new javax.swing.JButton();
        jLabelMensajeEliminarMovimiento = new javax.swing.JLabel();
        jDialogConfirmacion = new javax.swing.JDialog();
        jLabelTextoConfirmacion = new javax.swing.JLabel();
        jButtonAceptarConfirmacion = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        jDialogAgregarMovimiento = new javax.swing.JDialog();
        agregarMovFecha = new javax.swing.JLabel();
        agregarMovDebe = new javax.swing.JLabel();
        agregarMovHaber = new javax.swing.JLabel();
        jButtonAceptarAgregarMov = new javax.swing.JButton();
        jButtonCancelarAgregarMov = new javax.swing.JButton();
        jTextFieldDebeMovimiento2 = new javax.swing.JTextField();
        jTextFieldHaberMovimiento2 = new javax.swing.JTextField();
        jDateChooserFechaMovimiento2 = new com.toedter.calendar.JDateChooser();
        jLabel1 = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTextAreaDescripcionMovimiento2 = new javax.swing.JTextArea();
        jDialogBuscarApoderadoTramite = new javax.swing.JDialog();
        jScrollPaneApoderadoTramite = new javax.swing.JScrollPane();
        jPanelApoderadoTramite = new javax.swing.JPanel();
        jScrollPaneBuscarApoderadoTramite = new javax.swing.JScrollPane();
        jTableBuscarApoderadoTramite = new javax.swing.JTable();
        jPanelBuscarApoderadoTramite = new javax.swing.JPanel();
        jTextFieldTelefonoBuscarApoderadoTramite = new javax.swing.JTextField();
        jLabelTelefonoBuscarApoderadoTramite = new javax.swing.JLabel();
        jLabelDireccionBuscarApoderadoTramite = new javax.swing.JLabel();
        jTextFieldDireccionBuscarApoderadoTramite = new javax.swing.JTextField();
        jTextFieldNombreBuscarApoderadoTramite = new javax.swing.JTextField();
        jLabelNombreBuscarApoderadoTramite = new javax.swing.JLabel();
        jLabelDocumentoBuscarApoderadoTramite = new javax.swing.JLabel();
        jTextFieldDocumentoBuscarApoderadoTramite = new javax.swing.JTextField();
        jLabelEmailBuscarApoderadoTramite = new javax.swing.JLabel();
        jTextFieldEmailBuscarApoderadoTramite = new javax.swing.JTextField();
        jLabelTipoDocumentoBuscarApoderadoCausa = new javax.swing.JLabel();
        jComboBoxTipoDocumentoBuscarApoderadoTramite = new javax.swing.JComboBox();
        jButtonBuscarApoderadoTramite = new javax.swing.JButton();
        jButtonDeshacerBusquedaApoderadoTramite = new javax.swing.JButton();
        jDialogBuscarClienteTramite = new javax.swing.JDialog();
        jScrollPaneClienteTramite = new javax.swing.JScrollPane();
        jPanelClienteTramite = new javax.swing.JPanel();
        jScrollPaneBuscarClienteTramite = new javax.swing.JScrollPane();
        jTableBuscarClienteTramite = new javax.swing.JTable();
        jPanelBuscarClienteTramite = new javax.swing.JPanel();
        jTextFieldTelefonoBuscarClienteTramite = new javax.swing.JTextField();
        jLabelTelefonoBuscarClienteTramite = new javax.swing.JLabel();
        jLabelDireccionBuscarClienteTramite = new javax.swing.JLabel();
        jTextFieldDireccionBuscarClienteTramite = new javax.swing.JTextField();
        jTextFieldNombreBuscarClienteTramite = new javax.swing.JTextField();
        jLabelNombreBuscarClienteTramite = new javax.swing.JLabel();
        jLabelDocumentoBuscarClienteTramite = new javax.swing.JLabel();
        jTextFieldDocumentoBuscarClienteTramite = new javax.swing.JTextField();
        jLabelEmailBuscarClienteTramite = new javax.swing.JLabel();
        jTextFieldEmailBuscarClienteTramite = new javax.swing.JTextField();
        jLabelTipoDocumentoBuscarClienteTramite = new javax.swing.JLabel();
        jComboBoxTipoDocumentoBuscarClienteTramite = new javax.swing.JComboBox();
        jButtonBuscarClienteTramite = new javax.swing.JButton();
        jButtonDeshacerBusquedaClienteTramite = new javax.swing.JButton();
        jDialogAltaCausa = new javax.swing.JDialog();
        jLabelTituloAltaCausa = new javax.swing.JLabel();
        jLabelNumAltaCausa = new javax.swing.JLabel();
        jLabelFechaInicioAltaCausa = new javax.swing.JLabel();
        jLabelFechaCierreAltaCausa = new javax.swing.JLabel();
        jLabelTipoAltaCausa = new javax.swing.JLabel();
        jLabelJuzgadoAltaCausa = new javax.swing.JLabel();
        jLabelDescAltaCausa = new javax.swing.JLabel();
        jTextFieldNumAltaCausa = new javax.swing.JTextField();
        jDateChooserFechaInicioAltaCausa = new com.toedter.calendar.JDateChooser();
        jDateChooserFechaCierreAltaCausa = new com.toedter.calendar.JDateChooser();
        jComboBoxTipoAltaCausa = new javax.swing.JComboBox();
        jButtonConfirmarAltaCausa = new javax.swing.JButton();
        jButtonCancelarAltaCausa = new javax.swing.JButton();
        jScrollPane7 = new javax.swing.JScrollPane();
        jTextAreaDescripcionAltaCausa = new javax.swing.JTextArea();
        jLabelCaratulaNuevaCausa = new javax.swing.JLabel();
        jTextFieldCaratulaNuevaCausa = new javax.swing.JTextField();
        jLabelAbogadoApoderado = new javax.swing.JLabel();
        jLabelAbogadoContraparte = new javax.swing.JLabel();
        jLabelCliente = new javax.swing.JLabel();
        jLabelContraparte = new javax.swing.JLabel();
        jTextFieldAbogadoApoderado = new javax.swing.JTextField();
        jTextFieldAbogadoContraparte = new javax.swing.JTextField();
        jTextFieldCliente = new javax.swing.JTextField();
        jTextFieldContraparte = new javax.swing.JTextField();
        jButtonAbogadoApoderado = new javax.swing.JButton();
        jButtonAbogadoContraparte = new javax.swing.JButton();
        jButtonCliente = new javax.swing.JButton();
        jButtonContraparte = new javax.swing.JButton();
        jTextFieldIngreseTipo = new javax.swing.JTextField();
        jTextFieldJuzgadoAltaCausa = new javax.swing.JTextField();
        jPanelPasosCausa = new javax.swing.JPanel();
        jScrollPane13 = new javax.swing.JScrollPane();
        jTablePasosProcesalesAltaCausa = new javax.swing.JTable();
        jButtonAgregarPasosAltaCausa = new javax.swing.JButton();
        jDialogBuscarApoderadoTarea = new javax.swing.JDialog();
        jScrollPaneBuscarApoderadoTarea = new javax.swing.JScrollPane();
        jTableBuscarApoderadoTarea = new javax.swing.JTable();
        jPanelBuscarApoderadoTarea = new javax.swing.JPanel();
        jTextFieldTelefonoBuscarApoderadoTarea = new javax.swing.JTextField();
        jLabelTelefonoBuscarApoderadoTarea = new javax.swing.JLabel();
        jLabelDireccionBuscarApoderadoTarea = new javax.swing.JLabel();
        jTextFieldDireccionBuscarApoderadoTarea = new javax.swing.JTextField();
        jTextFieldNombreBuscarApoderadoTarea = new javax.swing.JTextField();
        jLabelNombreBuscarApoderadoTarea = new javax.swing.JLabel();
        jLabelDocumentoBuscarApoderadoTarea = new javax.swing.JLabel();
        jTextFieldDocumentoBuscarApoderadoTarea = new javax.swing.JTextField();
        jLabelEmailBuscarApoderadoTarea = new javax.swing.JLabel();
        jTextFieldEmailBuscarApoderadoTarea = new javax.swing.JTextField();
        jLabelTipoDocumentoBuscarApoderadoTarea = new javax.swing.JLabel();
        jComboBoxTipoDocumentoBuscarApoderadoTarea = new javax.swing.JComboBox();
        jButtonApoderadoTarea = new javax.swing.JButton();
        jButtonDeshacerBusquedaApoderadoTarea = new javax.swing.JButton();
        jDialogEliminarMovimiento2 = new javax.swing.JDialog();
        jButtonSiEliminarMovimiento2 = new javax.swing.JButton();
        jButtonNoEliminarMovimiento2 = new javax.swing.JButton();
        jLabelMensajeEliminarMovimiento2 = new javax.swing.JLabel();
        jDialogModificarMovimiento = new javax.swing.JDialog();
        modificarrMovFecha = new javax.swing.JLabel();
        modificarrMovDebe = new javax.swing.JLabel();
        modificarMovHaber = new javax.swing.JLabel();
        jButtonAceptarModificarMov = new javax.swing.JButton();
        jButtonCancelarModificarMov = new javax.swing.JButton();
        jTextFieldDebeMovimiento3 = new javax.swing.JTextField();
        jTextFieldHaberMovimiento3 = new javax.swing.JTextField();
        jDateChooserFechaMovimiento3 = new com.toedter.calendar.JDateChooser();
        jLabelDescripcion2 = new javax.swing.JLabel();
        jScrollPaneModificarMov = new javax.swing.JScrollPane();
        jTextAreaDescripcionMovimiento3 = new javax.swing.JTextArea();
        jButtonEliminarMovimiento = new javax.swing.JButton();
        jDialogAlertaAgenda = new javax.swing.JDialog();
        jScrollPaneAlertaTareas = new javax.swing.JScrollPane();
        jTableTablaAlertaTareas = new javax.swing.JTable();
        jButtonAceptarAlertaTarea = new javax.swing.JButton();
        jLabelAlertaTarea = new javax.swing.JLabel();
        jScrollPane12 = new javax.swing.JScrollPane();
        jTableTablaAlertaPasos = new javax.swing.JTable();
        jLabelListadoProximosPasosAgenda = new javax.swing.JLabel();
        jDialogBuscarApoderadoCausa = new javax.swing.JDialog();
        jScrollPaneApoderadoCausa = new javax.swing.JScrollPane();
        jPanelApoderadoCausa = new javax.swing.JPanel();
        jScrollPaneBuscarApoderadoCausa = new javax.swing.JScrollPane();
        jTableBuscarApoderadoCausa = new javax.swing.JTable();
        jPanelBuscarApoderadoCausa = new javax.swing.JPanel();
        jTextFieldTelefonoBuscarApoderadoCausa = new javax.swing.JTextField();
        jLabelTelefonoBuscarApoderadoCausa = new javax.swing.JLabel();
        jLabelDireccionBuscarApoderadoCausa = new javax.swing.JLabel();
        jTextFieldDireccionBuscarApoderadoCausa = new javax.swing.JTextField();
        jTextFieldNombreBuscarApoderadoCausa = new javax.swing.JTextField();
        jLabelNombreBuscarApoderadoCausa = new javax.swing.JLabel();
        jLabelDocumentoBuscarApoderadoCausa = new javax.swing.JLabel();
        jTextFieldDocumentoBuscarApoderadoCausa = new javax.swing.JTextField();
        jLabelEmailBuscarApoderadoCausa = new javax.swing.JLabel();
        jTextFieldEmailBuscarApoderadoCausa = new javax.swing.JTextField();
        jLabelTipoDocumentoBuscarApoderadoCausa1 = new javax.swing.JLabel();
        jComboBoxTipoDocumentoBuscarApoderadoCausa = new javax.swing.JComboBox();
        jButtonBuscarApoderadoCausa = new javax.swing.JButton();
        jButtonDeshacerBusquedaApoderadoCausa = new javax.swing.JButton();
        jDialogBuscarClienteCausa = new javax.swing.JDialog();
        jScrollPaneClienteCausa = new javax.swing.JScrollPane();
        jPanelClienteTramiteCausa = new javax.swing.JPanel();
        jScrollPaneBuscarClienteCausa = new javax.swing.JScrollPane();
        jTableBuscarClienteCausa = new javax.swing.JTable();
        jPanelBuscarClienteCausa = new javax.swing.JPanel();
        jTextFieldTelefonoBuscarClienteCausa = new javax.swing.JTextField();
        jLabelTelefonoBuscarClienteCausa = new javax.swing.JLabel();
        jLabelDireccionBuscarClienteCausa = new javax.swing.JLabel();
        jTextFieldDireccionBuscarClienteCausa = new javax.swing.JTextField();
        jTextFieldNombreBuscarClienteCausa = new javax.swing.JTextField();
        jLabelNombreBuscarClienteCausa = new javax.swing.JLabel();
        jLabelDocumentoBuscarClienteCausa = new javax.swing.JLabel();
        jTextFieldDocumentoBuscarClienteCausa = new javax.swing.JTextField();
        jLabelEmailBuscarClienteCausa = new javax.swing.JLabel();
        jTextFieldEmailBuscarClienteCausa = new javax.swing.JTextField();
        jLabelTipoDocumentoBuscarClienteCausa = new javax.swing.JLabel();
        jComboBoxTipoDocumentoBuscarClienteCausa = new javax.swing.JComboBox();
        jButtonBuscarClienteCausa = new javax.swing.JButton();
        jButtonDeshacerBusquedaClienteCausa = new javax.swing.JButton();
        jDialogBuscarContraparteCausa = new javax.swing.JDialog();
        jScrollPaneContraparteCausa = new javax.swing.JScrollPane();
        jPanelContraparteCausa = new javax.swing.JPanel();
        jScrollPaneBuscarContraparteCausa = new javax.swing.JScrollPane();
        jTableBuscarContraparteCausa = new javax.swing.JTable();
        jPanelBuscarContraparteCausa = new javax.swing.JPanel();
        jTextFieldTelefonoBuscarContraparteCausa = new javax.swing.JTextField();
        jLabelTelefonoBuscarContraparteCausa = new javax.swing.JLabel();
        jLabelDireccionBuscarContraparteCausa = new javax.swing.JLabel();
        jTextFieldDireccionBuscarContraparteCausa = new javax.swing.JTextField();
        jTextFieldNombreBuscarContraparteCausa = new javax.swing.JTextField();
        jLabelNombreBuscarContraparteCausa = new javax.swing.JLabel();
        jLabelDocumentoBuscarApoderadoCausa1 = new javax.swing.JLabel();
        jTextFieldDocumentoBuscarContraparteCausa = new javax.swing.JTextField();
        jLabelEmailBuscarApoderadoCausa1 = new javax.swing.JLabel();
        jTextFieldEmailBuscarContraparteCausa = new javax.swing.JTextField();
        jLabelTipoDocumentoBuscarApoderadoCausa2 = new javax.swing.JLabel();
        jComboBoxTipoDocumentoBuscarContraparteCausa = new javax.swing.JComboBox();
        jButtonBuscarContraparteCausa = new javax.swing.JButton();
        jButtonDeshacerBusquedaContraparteCausa = new javax.swing.JButton();
        jDialogBuscarAbogadoContraparteCausa = new javax.swing.JDialog();
        jScrollPaneContraparteCausa1 = new javax.swing.JScrollPane();
        jPanelContraparteCausa1 = new javax.swing.JPanel();
        jScrollPaneBuscarContraparteCausa1 = new javax.swing.JScrollPane();
        jTableBuscarAbogadoContraparteCausa = new javax.swing.JTable();
        jPanelBuscarContraparteCausa1 = new javax.swing.JPanel();
        jTextFieldTelefonoBuscarContraparteCausa1 = new javax.swing.JTextField();
        jLabelTelefonoBuscarContraparteCausa1 = new javax.swing.JLabel();
        jLabelDireccionBuscarContraparteCausa1 = new javax.swing.JLabel();
        jTextFieldDireccionBuscarContraparteCausa1 = new javax.swing.JTextField();
        jTextFieldNombreBuscarContraparteCausa1 = new javax.swing.JTextField();
        jLabelNombreBuscarContraparteCausa1 = new javax.swing.JLabel();
        jLabelDocumentoBuscarApoderadoCausa2 = new javax.swing.JLabel();
        jTextFieldDocumentoBuscarContraparteCausa1 = new javax.swing.JTextField();
        jLabelEmailBuscarApoderadoCausa2 = new javax.swing.JLabel();
        jTextFieldEmailBuscarContraparteCausa1 = new javax.swing.JTextField();
        jLabelTipoDocumentoBuscarApoderadoCausa3 = new javax.swing.JLabel();
        jComboBoxTipoDocumentoBuscarContraparteCausa1 = new javax.swing.JComboBox();
        jButtonBuscarContraparteCausa1 = new javax.swing.JButton();
        jButtonDeshacerBusquedaContraparteCausa1 = new javax.swing.JButton();
        jDialogConsultaCausa = new javax.swing.JDialog();
        jLabelTituloConsultaCausa = new javax.swing.JLabel();
        jLabelNumConsultaCausa = new javax.swing.JLabel();
        jLabelFechaInicioConsultaCausa = new javax.swing.JLabel();
        jLabelFechaCierreConsultaCausa = new javax.swing.JLabel();
        jLabelTipoConsultaCausa = new javax.swing.JLabel();
        jLabelJuzgadoConsultaCausa = new javax.swing.JLabel();
        jLabelDescConsultaCausa = new javax.swing.JLabel();
        jTextFieldNumConsultaCausa = new javax.swing.JTextField();
        jDateChooserFechaInicioConsultaCausa = new com.toedter.calendar.JDateChooser();
        jDateChooserFechaCierreConsultaCausa = new com.toedter.calendar.JDateChooser();
        jComboBoxTipoConsultaCausa = new javax.swing.JComboBox();
        jButtonConfirmarConsultaCausa = new javax.swing.JButton();
        jButtonCancelarConsultaCausa = new javax.swing.JButton();
        jScrollPaneConsultaCausaDescripcion = new javax.swing.JScrollPane();
        jTextAreaDescripcionConsultaCausa = new javax.swing.JTextArea();
        jLabelCaratulaConsultaCausa = new javax.swing.JLabel();
        jTextFieldCaratulaConsultaCausa = new javax.swing.JTextField();
        jLabelAbogadoApoderadoConsultaCausa = new javax.swing.JLabel();
        jLabelAbogadoContraparte1 = new javax.swing.JLabel();
        jLabelCliente1 = new javax.swing.JLabel();
        jLabelContraparte1 = new javax.swing.JLabel();
        jTextFieldAbogadoApoderadoConsultaCausa = new javax.swing.JTextField();
        jTextFieldAbogadoContraparteConsultaCausa = new javax.swing.JTextField();
        jTextFieldClienteConsultaCausa = new javax.swing.JTextField();
        jTextFieldContraparteConsultaCausa = new javax.swing.JTextField();
        jButtonAbogadoApoderadoConsultaCausa = new javax.swing.JButton();
        jButtonAbogadoContraparteConsultaCausa = new javax.swing.JButton();
        jButtonClienteConsultaCausa = new javax.swing.JButton();
        jButtonContraparteConsultaCausa = new javax.swing.JButton();
        jButtonBajaCausas = new javax.swing.JButton();
        jTextFieldJuzgadoConsultaCausa = new javax.swing.JTextField();
        jPanelAgregarPasoProcesalConsultaCausa = new javax.swing.JPanel();
        jButtonConsultaCausaAgregarPaso = new javax.swing.JButton();
        jScrollPaneConsultaCausaPasos = new javax.swing.JScrollPane();
        jTableConsultaCausaPasos = new javax.swing.JTable();
        jButtonConsultaCausaAgregarPaso1 = new javax.swing.JButton();
        jButtonBajaCausas1 = new javax.swing.JButton();
        jTextFieldJuzgadoConsultaCausa1 = new javax.swing.JTextField();
        jTextFieldTipoCausaOtro = new javax.swing.JTextField();
        jDialogAgregarPasoProcesal = new javax.swing.JDialog();
        jLabelAgregarPasoFechaTitulo = new javax.swing.JLabel();
        jLabelAgregarPasoFechaRealizacion = new javax.swing.JLabel();
        jLabelAgregarPasoFechaVencimiento = new javax.swing.JLabel();
        jLabelAgregarPasoDescripcion = new javax.swing.JLabel();
        jDateChooserAgregarPasoFechaRealizacion = new com.toedter.calendar.JDateChooser();
        jDateChooserAgregarPasoFechaVencimiento = new com.toedter.calendar.JDateChooser();
        jScrollPaneAgregarPasoDescr = new javax.swing.JScrollPane();
        jTextAreaAgregarPasoDescripcion = new javax.swing.JTextArea();
        jButtonCancelarNuevoPaso = new javax.swing.JButton();
        jPanelDocumentosRelacionadosPasoProcesal = new javax.swing.JPanel();
        jButtonAgregarDocumentoPaso = new javax.swing.JButton();
        jButtonAbrirDocumentosPaso = new javax.swing.JButton();
        jButtonCrearDocumentoPaso = new javax.swing.JButton();
        jButtonEliminarDocumentosPAso = new javax.swing.JButton();
        jScrollPane9 = new javax.swing.JScrollPane();
        jTableDocumentosRelacionadosPaso = new javax.swing.JTable();
        jButtonAgregarPasoATramite = new javax.swing.JButton();
        jButtonModificarPasoTramite = new javax.swing.JButton();
        jButtonGuardarCambiosPasosTramite = new javax.swing.JButton();
        jButtonEliminarPasoTramite = new javax.swing.JButton();
        jDialogConfirmacionBajaCausa = new javax.swing.JDialog();
        jLabelConfirmacionBajaCausa = new javax.swing.JLabel();
        jButtonAceptarEliminarCausa = new javax.swing.JButton();
        jButtonCancelarEliminarCausa = new javax.swing.JButton();
        jDialogEliminarDocumentoRelacionadosTramite = new javax.swing.JDialog();
        jLabelEliminarDocuemnteoRelacionadoTramite = new javax.swing.JLabel();
        jButtonEliminarDocumentoRelacionadoTramiteSI = new javax.swing.JButton();
        jButtonEliminarDocumentoRelacionadoTramiteNO = new javax.swing.JButton();
        jDialogEliminarDocumentosRelacionadosTarea = new javax.swing.JDialog();
        jLabelEliminarDocumentoTarea = new javax.swing.JLabel();
        jButtonEliminarDocuemntoTareaSI = new javax.swing.JButton();
        jButtonEliminarDocumentoTareaNO = new javax.swing.JButton();
        jDialogNombreRutaDocumento = new javax.swing.JDialog();
        jLabelNombreRutaDocumento = new javax.swing.JLabel();
        jTextFieldNombreRutaDocumentoTramite = new javax.swing.JTextField();
        jButtonAceptarRutaDocumento = new javax.swing.JButton();
        jButtonCancelarNombreRutaDocumento = new javax.swing.JButton();
        jDialogNombreRutaDocumentoTarea = new javax.swing.JDialog();
        jTextFieldNombreRutaDocumentoTarea = new javax.swing.JTextField();
        jButtonCancelarNombreRutaTarea = new javax.swing.JButton();
        jButtonAceptarRutaDocumentoTarea = new javax.swing.JButton();
        jLabelNombreRutaDocumentoTarea = new javax.swing.JLabel();
        jDialogNombreRutasDocumentosPaso = new javax.swing.JDialog();
        jTextFieldNombreRutaDocumentoPaso = new javax.swing.JTextField();
        jButtonCancelarNombreRutaPaso = new javax.swing.JButton();
        jButtonAceptarRutaDocumentoPaso = new javax.swing.JButton();
        jLabelNombreRutaDocumentoPaso = new javax.swing.JLabel();
        jDialogEliminarDocumentoRelacionadoPasoTramite = new javax.swing.JDialog();
        jLabelEliminarDocumentoPaso = new javax.swing.JLabel();
        jButtonEliminarDocuemntoPasoSI = new javax.swing.JButton();
        jButtonEliminarDocumentoPasoNO = new javax.swing.JButton();
        jDialogConfirmacionEliminarPaso = new javax.swing.JDialog();
        jLabelConfirmacionEliminarPaso = new javax.swing.JLabel();
        jButtonSiEliminarPaso = new javax.swing.JButton();
        jButtonNoEliminarPaso = new javax.swing.JButton();
        jDialogConsultaPasoProcesal = new javax.swing.JDialog();
        jLabelAgregarPasoFechaRealizacion1 = new javax.swing.JLabel();
        jLabelAgregarPasoFechaVencimiento1 = new javax.swing.JLabel();
        jLabelAgregarPasoDescripcion1 = new javax.swing.JLabel();
        jDateChooserConsultarPasoFechaRealizacion = new com.toedter.calendar.JDateChooser();
        jDateChooserConsultarPasoFechaVencimiento = new com.toedter.calendar.JDateChooser();
        jScrollPaneAgregarPasoDescr1 = new javax.swing.JScrollPane();
        jTextAreaConsultarPasoDescripcion = new javax.swing.JTextArea();
        jButtonModificarDatosPaso = new javax.swing.JButton();
        jPanelDocumentosRelacionadosPasoProcesal1 = new javax.swing.JPanel();
        jButtonAgregarDocumentoPaso1 = new javax.swing.JButton();
        jButtonAbrirDocumentosPaso1 = new javax.swing.JButton();
        jButtonCrearDocumentoPaso1 = new javax.swing.JButton();
        jButtonEliminarDocumentosPAso1 = new javax.swing.JButton();
        jScrollPane10 = new javax.swing.JScrollPane();
        jTableDocumentosRelacionadosPaso1 = new javax.swing.JTable();
        jButton5 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jLabelAgregarPasoFechaTitulo1 = new javax.swing.JLabel();
        jDialogEliminarPasoTramite = new javax.swing.JDialog();
        jLabelEliminarPasoTramite = new javax.swing.JLabel();
        jButtonEliminarPasoTramiteSI = new javax.swing.JButton();
        jButtonEliminarPasoTrtamiteNO = new javax.swing.JButton();
        jDialogEliminarDocumentoRelacionadosPaso = new javax.swing.JDialog();
        jLabelEliminarDocuemnteoRelacionadoTramite1 = new javax.swing.JLabel();
        jButtonEliminarDocumentoRelacionadoTramiteSI1 = new javax.swing.JButton();
        jButtonEliminarDocumentoRelacionadoTramiteNO1 = new javax.swing.JButton();
        jDialogMovimientoPersona = new javax.swing.JDialog();
        jLabelFechaMovimiento = new javax.swing.JLabel();
        jDateChooserFechaMovimiento = new com.toedter.calendar.JDateChooser();
        jLabelDebeMovimiento = new javax.swing.JLabel();
        jTextFieldDebeMovimiento = new javax.swing.JTextField();
        jLabelHaberMovimiento = new javax.swing.JLabel();
        jTextFieldHaberMovimiento = new javax.swing.JTextField();
        jLabelDescripcionMovimiento = new javax.swing.JLabel();
        jScrollPaneDescripcionMovimiento = new javax.swing.JScrollPane();
        jTextAreaDescripcionMovimiento = new javax.swing.JTextArea();
        jButtonEliminarMovimientoCuentaCorriente = new javax.swing.JButton();
        jButtonConfirmarMovimiento = new javax.swing.JButton();
        jButtonCancelarMovimiento = new javax.swing.JButton();
        jDialogNombreRutaDocumentoPasoCausa = new javax.swing.JDialog();
        jLabelNombreRutaDocumento1 = new javax.swing.JLabel();
        jTextFieldNombreRutaDocumentoTramite1 = new javax.swing.JTextField();
        jButtonAceptarRutaDocumento1 = new javax.swing.JButton();
        jButtonCancelarNombreRutaDocumento1 = new javax.swing.JButton();
        jTabbedPaneEstudioJuridico = new javax.swing.JTabbedPane();
        jPanelPersonas = new javax.swing.JPanel();
        jButtonAltaPersona = new javax.swing.JButton();
        jScrollPanePersonas1 = new javax.swing.JScrollPane();
        jTablePersonas = new javax.swing.JTable();
        jPanelBuscarVenta = new javax.swing.JPanel();
        jTextFieldTelefonoBuscarPersona = new javax.swing.JTextField();
        jLabelTelefonoBuscarPersona = new javax.swing.JLabel();
        jLabelDireccionBuscarPersona = new javax.swing.JLabel();
        jTextFieldDireccionBuscarPersona = new javax.swing.JTextField();
        jTextFieldNombreBuscarPersona = new javax.swing.JTextField();
        jLabelNombreBuscarPersona = new javax.swing.JLabel();
        jLabelDocumentoBuscarPersona = new javax.swing.JLabel();
        jTextFieldDocumentoBuscarPersona = new javax.swing.JTextField();
        jLabelEmailBuscarPersona = new javax.swing.JLabel();
        jTextFieldEmailBuscarPersona = new javax.swing.JTextField();
        jLabelTipoDocumentoBuscarPersona = new javax.swing.JLabel();
        jComboBoxTipoDocumentoBuscarPersona = new javax.swing.JComboBox();
        jButtonBuscarPersona = new javax.swing.JButton();
        jButtonDeshacerBuscarPersona = new javax.swing.JButton();
        jLabelTextoListadoTramites1 = new javax.swing.JLabel();
        jPanelAdmCausas = new javax.swing.JPanel();
        jLabelListadoCausas = new javax.swing.JLabel();
        jScrollPaneCausas = new javax.swing.JScrollPane();
        jTableCausas = new javax.swing.JTable();
        jButtonAltaCausas = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jLabelNumeroCausa = new javax.swing.JLabel();
        jLabelTipoCausa = new javax.swing.JLabel();
        jLabelJuzgadoCausa = new javax.swing.JLabel();
        jLabelDescripcionCausa = new javax.swing.JLabel();
        jLabelCaratulaCausa = new javax.swing.JLabel();
        jLabelFechaInicioCausa = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jTextFieldNumeroBusquedaCausa = new javax.swing.JTextField();
        jTextFieldCaratulaBuscarCausa = new javax.swing.JTextField();
        jDateChooserInicioBuscarCausa = new com.toedter.calendar.JDateChooser();
        jDateChooserCierreBuscarCausa = new com.toedter.calendar.JDateChooser();
        jTextFieldDescripcionBuscarCausa = new javax.swing.JTextField();
        jButtonBuscarCausa = new javax.swing.JButton();
        jButtonDeshacerBusquedaCausa = new javax.swing.JButton();
        jTextFieldTipoBuscarCausa = new javax.swing.JTextField();
        jTextFieldJuzgadoBuscarCausa = new javax.swing.JTextField();
        jPanelAdministracionTramites = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTableListadoTramites = new javax.swing.JTable();
        jLabelTextoListadoTramites = new javax.swing.JLabel();
        jPanelBuscarTramite = new javax.swing.JPanel();
        jLabelNumeroBuscarTramite = new javax.swing.JLabel();
        jLabelDescripcionBuscarTramite = new javax.swing.JLabel();
        jTextFieldNumeroBuscarTramite = new javax.swing.JTextField();
        jTextFieldDescripcionBuscarTramite = new javax.swing.JTextField();
        jButtonBuscarTramite = new javax.swing.JButton();
        jButtonDeshacerBusquedaTramite = new javax.swing.JButton();
        jButtonAgregarTramite = new javax.swing.JButton();
        jPanelAgenda = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        jTableAgenda = new javax.swing.JTable();
        jButtonAgregarTareaAgenda = new javax.swing.JButton();
        jPanelBuscarAgenda = new javax.swing.JPanel();
        jLabelDescripcionBuscarAgenda = new javax.swing.JLabel();
        jLabelLugarBuscarAgenda = new javax.swing.JLabel();
        jLabelHoraBuscarAgenda = new javax.swing.JLabel();
        jTextFieldDescripcionBuscarAgenda = new javax.swing.JTextField();
        jTextFieldLugarBuscarAgenda = new javax.swing.JTextField();
        jTextFieldHoraBuscarAgenda = new javax.swing.JTextField();
        jButtonBuscarAgenda = new javax.swing.JButton();
        jButtonDeshacerBusquedaTarea = new javax.swing.JButton();
        jLabelNumeroBuscarAgenda = new javax.swing.JLabel();
        jTextFieldNumeroBuscarAgenda = new javax.swing.JTextField();
        jLabelFechaBuscarAgenda = new javax.swing.JLabel();
        jDateChooserFechaAgenda = new com.toedter.calendar.JDateChooser();
        jCalendarAgenda = new com.toedter.calendar.JCalendar();
        jLabelTextoAgenda = new javax.swing.JLabel();
        jScrollPane11 = new javax.swing.JScrollPane();
        jTablePasosAgenda = new javax.swing.JTable();
        jLabelListadoDePasos = new javax.swing.JLabel();
        jPanelCaja = new javax.swing.JPanel();
        jScrollPaneCaja = new javax.swing.JScrollPane();
        jTableCaja = new javax.swing.JTable();
        jButtonAgregarMovimiento = new javax.swing.JButton();
        jLabelTextoCaja = new javax.swing.JLabel();
        jPanelBuscarMovimientosCaja = new javax.swing.JPanel();
        jTextFieldDescripcionBuscarMovimientoCaja = new javax.swing.JTextField();
        jLabelDescripcionBuscarMovimientoCaja = new javax.swing.JLabel();
        jLabelHaberBuscarMovimientoCaja = new javax.swing.JLabel();
        jTextFieldHaberBuscarMovimientoCaja = new javax.swing.JTextField();
        jTextFieldDebeBuscarMovimientoCaja = new javax.swing.JTextField();
        jLabelDebeBuscarMovimientoCaja = new javax.swing.JLabel();
        jLabelFechaBuscarMovimientoCaja = new javax.swing.JLabel();
        jDateChooserFechaBuscarMovimientoCaja = new com.toedter.calendar.JDateChooser();
        jButtonBuscarMovimientoCaja = new javax.swing.JButton();
        jButtonDeshacerBuscarMovimientoCaja = new javax.swing.JButton();
        jLabelTextoTotalDebeCaja = new javax.swing.JLabel();
        jLabelTotalDebeMovimientosCaja = new javax.swing.JLabel();
        jLabelTextoTotalHaberCaja = new javax.swing.JLabel();
        jLabelTotalHaberMovimientosCaja = new javax.swing.JLabel();
        jLabelTextoTotalCaja = new javax.swing.JLabel();
        jLabelTotalMovimientosCaja = new javax.swing.JLabel();

        jDialogAgregarTramite.setTitle("Agregar Trámite");
        jDialogAgregarTramite.setMinimumSize(new java.awt.Dimension(1150, 400));
        jDialogAgregarTramite.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);
        jDialogAgregarTramite.setResizable(false);

        jLabelNumeroAgregarTramite.setText("Número:");

        jLabelFechaInicioAgregarTramite.setText("Fecha de Inicio:");

        jLabelFechaFinAgregarTramite.setText("Fecha de Fin:");

        jLabelDescripcionAgregarTramite.setText("Descripción:");

        jLabelApoderadoAgregarTramite.setText("Abogado:");

        jLabelClienteAgregarTramite.setText("Cliente:");

        jButtonAceptarAgregarTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAceptarAgregarTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAceptarAgregarTramite.setText("Aceptar");
        jButtonAceptarAgregarTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarAgregarTramiteActionPerformed(evt);
            }
        });

        jButtonCancelarAgregarTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelarAgregarTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarAgregarTramite.setText("Cancelar");
        jButtonCancelarAgregarTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarAgregarTramiteActionPerformed(evt);
            }
        });

        jTextFieldApoderadoAgregarTramite.setEditable(false);

        jButtonBuscarApoderadoAgregarTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBuscarApoderadoAgregarTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarApoderadoAgregarTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarApoderadoAgregarTramiteActionPerformed(evt);
            }
        });

        jTextFieldClienteAgregarTramite.setEditable(false);

        jButtonBuscarClienteAgregarTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBuscarClienteAgregarTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarClienteAgregarTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarClienteAgregarTramiteActionPerformed(evt);
            }
        });

        jTextAreaDescripcionAgregarTramite.setColumns(20);
        jTextAreaDescripcionAgregarTramite.setRows(5);
        jScrollPane2.setViewportView(jTextAreaDescripcionAgregarTramite);

        jButtonModificarAgregarTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonModificarAgregarTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/modificar.png"))); // NOI18N
        jButtonModificarAgregarTramite.setText("Modificar");
        jButtonModificarAgregarTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonModificarAgregarTramiteActionPerformed(evt);
            }
        });

        jButtonGuardarCambiosAgregarTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonGuardarCambiosAgregarTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/guardar.png"))); // NOI18N
        jButtonGuardarCambiosAgregarTramite.setText("Guardar Cambios");
        jButtonGuardarCambiosAgregarTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarCambiosAgregarTramiteActionPerformed(evt);
            }
        });

        jButtonEliminarTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/eliminar.png"))); // NOI18N
        jButtonEliminarTramite.setText("Eliminar Tramite");
        jButtonEliminarTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarTramiteActionPerformed(evt);
            }
        });

        jPanelDocumentosRelacionadoTramite.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Documentos Relacionados", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N

        jButtonAbrirDocumentoTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAbrirDocumentoTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/carpeta.png"))); // NOI18N
        jButtonAbrirDocumentoTramite.setText("Abrir Documento");
        jButtonAbrirDocumentoTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAbrirDocumentoTramiteActionPerformed(evt);
            }
        });

        jButtonAgregarDocumentosRelacionadosAgregarTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAgregarDocumentosRelacionadosAgregarTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/agregar.png"))); // NOI18N
        jButtonAgregarDocumentosRelacionadosAgregarTramite.setText("Cargar Documento");
        jButtonAgregarDocumentosRelacionadosAgregarTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAgregarDocumentosRelacionadosAgregarTramiteActionPerformed(evt);
            }
        });

        jTableDocumentosRelacionadosTramites.setModel(this.datosRutaTramites);
        jScrollPaneDocumentosRelacionados.setViewportView(jTableDocumentosRelacionadosTramites);

        jButtonCrearDocumentosRelacionadosAgregarTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCrearDocumentosRelacionadosAgregarTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/documento.png"))); // NOI18N
        jButtonCrearDocumentosRelacionadosAgregarTramite.setText("Crear Documento");
        jButtonCrearDocumentosRelacionadosAgregarTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCrearDocumentosRelacionadosAgregarTramiteActionPerformed(evt);
            }
        });

        jButtonEliminarDocumentoRelacionadoTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarDocumentoRelacionadoTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/eliminar.png"))); // NOI18N
        jButtonEliminarDocumentoRelacionadoTramite.setText("Eliminar Documento");
        jButtonEliminarDocumentoRelacionadoTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarDocumentoRelacionadoTramiteActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelDocumentosRelacionadoTramiteLayout = new javax.swing.GroupLayout(jPanelDocumentosRelacionadoTramite);
        jPanelDocumentosRelacionadoTramite.setLayout(jPanelDocumentosRelacionadoTramiteLayout);
        jPanelDocumentosRelacionadoTramiteLayout.setHorizontalGroup(
            jPanelDocumentosRelacionadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelDocumentosRelacionadoTramiteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPaneDocumentosRelacionados, javax.swing.GroupLayout.DEFAULT_SIZE, 237, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addGroup(jPanelDocumentosRelacionadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jButtonAgregarDocumentosRelacionadosAgregarTramite, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonAbrirDocumentoTramite, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonCrearDocumentosRelacionadosAgregarTramite, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonEliminarDocumentoRelacionadoTramite, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );
        jPanelDocumentosRelacionadoTramiteLayout.setVerticalGroup(
            jPanelDocumentosRelacionadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDocumentosRelacionadoTramiteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelDocumentosRelacionadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jScrollPaneDocumentosRelacionados, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanelDocumentosRelacionadoTramiteLayout.createSequentialGroup()
                        .addComponent(jButtonAgregarDocumentosRelacionadosAgregarTramite, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(38, 38, 38)
                        .addComponent(jButtonAbrirDocumentoTramite)
                        .addGap(41, 41, 41)
                        .addComponent(jButtonCrearDocumentosRelacionadosAgregarTramite)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonEliminarDocumentoRelacionadoTramite)))
                .addContainerGap(25, Short.MAX_VALUE))
        );

        jPanelPasosTramites.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Pasos Tramites", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N

        jTablePasosTramites.setModel(this.datosPasoTramite);
        jTablePasosTramites.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTablePasosTramitesMouseClicked(evt);
            }
        });
        jScrollPane8.setViewportView(jTablePasosTramites);

        jButtonAgregarPasosTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAgregarPasosTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/agregar.png"))); // NOI18N
        jButtonAgregarPasosTramite.setText("Agregar Pasos");
        jButtonAgregarPasosTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAgregarPasosTramiteActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelPasosTramitesLayout = new javax.swing.GroupLayout(jPanelPasosTramites);
        jPanelPasosTramites.setLayout(jPanelPasosTramitesLayout);
        jPanelPasosTramitesLayout.setHorizontalGroup(
            jPanelPasosTramitesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelPasosTramitesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelPasosTramitesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jButtonAgregarPasosTramite, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE)
                    .addComponent(jScrollPane8, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanelPasosTramitesLayout.setVerticalGroup(
            jPanelPasosTramitesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelPasosTramitesLayout.createSequentialGroup()
                .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 206, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonAgregarPasosTramite))
        );

        javax.swing.GroupLayout jDialogAgregarTramiteLayout = new javax.swing.GroupLayout(jDialogAgregarTramite.getContentPane());
        jDialogAgregarTramite.getContentPane().setLayout(jDialogAgregarTramiteLayout);
        jDialogAgregarTramiteLayout.setHorizontalGroup(
            jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAgregarTramiteLayout.createSequentialGroup()
                .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogAgregarTramiteLayout.createSequentialGroup()
                        .addGap(28, 28, 28)
                        .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelDescripcionAgregarTramite)
                            .addComponent(jLabelClienteAgregarTramite)
                            .addComponent(jLabelApoderadoAgregarTramite))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jDialogAgregarTramiteLayout.createSequentialGroup()
                                .addComponent(jButtonAceptarAgregarTramite)
                                .addGap(57, 57, 57)
                                .addComponent(jButtonModificarAgregarTramite)
                                .addGap(18, 18, 18)
                                .addComponent(jButtonGuardarCambiosAgregarTramite)
                                .addGap(18, 18, 18)
                                .addComponent(jButtonCancelarAgregarTramite)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jButtonEliminarTramite))
                            .addGroup(jDialogAgregarTramiteLayout.createSequentialGroup()
                                .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jDialogAgregarTramiteLayout.createSequentialGroup()
                                        .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(jTextFieldClienteAgregarTramite)
                                            .addComponent(jTextFieldApoderadoAgregarTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jButtonBuscarClienteAgregarTramite)
                                            .addComponent(jButtonBuscarApoderadoAgregarTramite)))
                                    .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(jDateChooserFechaFinAgregarTramite, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jDateChooserFechaInicioAgregarTramite, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jTextFieldNumeroAgregarTramite, javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.LEADING)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelDocumentosRelacionadoTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(jDialogAgregarTramiteLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelNumeroAgregarTramite)
                            .addComponent(jLabelFechaInicioAgregarTramite)
                            .addComponent(jLabelFechaFinAgregarTramite))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelPasosTramites, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jDialogAgregarTramiteLayout.setVerticalGroup(
            jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAgregarTramiteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelPasosTramites, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanelDocumentosRelacionadoTramite, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jDialogAgregarTramiteLayout.createSequentialGroup()
                        .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelNumeroAgregarTramite)
                            .addComponent(jTextFieldNumeroAgregarTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelFechaInicioAgregarTramite)
                            .addComponent(jDateChooserFechaInicioAgregarTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelFechaFinAgregarTramite)
                            .addComponent(jDateChooserFechaFinAgregarTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jDialogAgregarTramiteLayout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jDialogAgregarTramiteLayout.createSequentialGroup()
                                .addGap(23, 23, 23)
                                .addComponent(jLabelDescripcionAgregarTramite)))
                        .addGap(26, 26, 26)
                        .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jTextFieldApoderadoAgregarTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jButtonBuscarApoderadoAgregarTramite))
                            .addComponent(jLabelApoderadoAgregarTramite))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButtonBuscarClienteAgregarTramite)
                            .addComponent(jTextFieldClienteAgregarTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelClienteAgregarTramite))
                        .addGap(10, 10, 10)))
                .addGap(19, 19, 19)
                .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonAceptarAgregarTramite)
                    .addGroup(jDialogAgregarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButtonModificarAgregarTramite)
                        .addComponent(jButtonGuardarCambiosAgregarTramite)
                        .addComponent(jButtonCancelarAgregarTramite)
                        .addComponent(jButtonEliminarTramite)))
                .addGap(22, 22, 22))
        );

        jDialogAgregarTarea.setTitle("Agregar Tarea");
        jDialogAgregarTarea.setMinimumSize(new java.awt.Dimension(700, 600));
        jDialogAgregarTarea.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);
        jDialogAgregarTarea.setResizable(false);

        jLabelNumeroAgregarTarea.setText("Número:");

        jLabelFechaRealizacionAgregarTarea.setText("Fecha de Realización:");

        jLabelHoraAgregarTarea.setText("Hora:");

        jLabelLugarAgregarTarea.setText("Lugar:");

        jLabelDescripcionAgregarTarea.setText("Descripción:");

        jButtonAceptarAgregarTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAceptarAgregarTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/agregar.png"))); // NOI18N
        jButtonAceptarAgregarTarea.setText("Aceptar");
        jButtonAceptarAgregarTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarAgregarTareaActionPerformed(evt);
            }
        });

        jButtonCancelarAgregarTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelarAgregarTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarAgregarTarea.setText("Cancelar");
        jButtonCancelarAgregarTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarAgregarTareaActionPerformed(evt);
            }
        });

        jTextAreaDescripcionTarea.setColumns(20);
        jTextAreaDescripcionTarea.setRows(5);
        jScrollPane6.setViewportView(jTextAreaDescripcionTarea);

        jButtonModificarTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonModificarTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/modificar.png"))); // NOI18N
        jButtonModificarTarea.setText("Modificar");
        jButtonModificarTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonModificarTareaActionPerformed(evt);
            }
        });

        jButtonGuardarModificacionTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonGuardarModificacionTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/guardar.png"))); // NOI18N
        jButtonGuardarModificacionTarea.setText("Guardar Cambios");
        jButtonGuardarModificacionTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarModificacionTareaActionPerformed(evt);
            }
        });

        jButtonEliminarTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/eliminar.png"))); // NOI18N
        jButtonEliminarTarea.setText("Eliminar Tarea");
        jButtonEliminarTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarTareaActionPerformed(evt);
            }
        });

        jSpinFieldHoraTarea.setMaximum(23);
        jSpinFieldHoraTarea.setMinimum(0);

        jSpinFieldMinutosTarea.setMaximum(59);
        jSpinFieldMinutosTarea.setMinimum(0);

        jLabelHoraTextoTarea.setText("hs");

        jLabelMinutosTextoTarea.setText("min");

        jLabelApoderadoTarea.setText("Abogado:");

        jButtonBuscarApoderadoTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBuscarApoderadoTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarApoderadoTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarApoderadoTareaActionPerformed(evt);
            }
        });

        jPanelDocumentosRelacionadosTarea.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Documentos Relacionados", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N

        jTableDocumentosRelacionadosTarea.setModel(this.datosRutaTarea);
        jScrollPane5.setViewportView(jTableDocumentosRelacionadosTarea);

        jButtonagregarDocumentosRelacionadosTrarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonagregarDocumentosRelacionadosTrarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/agregar.png"))); // NOI18N
        jButtonagregarDocumentosRelacionadosTrarea.setText("Cargar Documentos");
        jButtonagregarDocumentosRelacionadosTrarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonagregarDocumentosRelacionadosTrareaActionPerformed(evt);
            }
        });

        jButtonCrearDocumentosRelacionadosTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCrearDocumentosRelacionadosTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/documento.png"))); // NOI18N
        jButtonCrearDocumentosRelacionadosTarea.setText("Crear Documento");
        jButtonCrearDocumentosRelacionadosTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCrearDocumentosRelacionadosTareaActionPerformed(evt);
            }
        });

        jButtonAbrirDocumentoTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAbrirDocumentoTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/carpeta.png"))); // NOI18N
        jButtonAbrirDocumentoTarea.setText("Abrir Documento");
        jButtonAbrirDocumentoTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAbrirDocumentoTareaActionPerformed(evt);
            }
        });

        jButtonEliminarDocumentoTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarDocumentoTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/eliminar.png"))); // NOI18N
        jButtonEliminarDocumentoTarea.setText("Eliminar Documento");
        jButtonEliminarDocumentoTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarDocumentoTareaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelDocumentosRelacionadosTareaLayout = new javax.swing.GroupLayout(jPanelDocumentosRelacionadosTarea);
        jPanelDocumentosRelacionadosTarea.setLayout(jPanelDocumentosRelacionadosTareaLayout);
        jPanelDocumentosRelacionadosTareaLayout.setHorizontalGroup(
            jPanelDocumentosRelacionadosTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelDocumentosRelacionadosTareaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 399, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelDocumentosRelacionadosTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonAbrirDocumentoTarea, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
                    .addComponent(jButtonCrearDocumentosRelacionadosTarea, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
                    .addComponent(jButtonEliminarDocumentoTarea, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
                    .addComponent(jButtonagregarDocumentosRelacionadosTrarea, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanelDocumentosRelacionadosTareaLayout.setVerticalGroup(
            jPanelDocumentosRelacionadosTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDocumentosRelacionadosTareaLayout.createSequentialGroup()
                .addGroup(jPanelDocumentosRelacionadosTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanelDocumentosRelacionadosTareaLayout.createSequentialGroup()
                        .addComponent(jButtonagregarDocumentosRelacionadosTrarea)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonAbrirDocumentoTarea)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonCrearDocumentosRelacionadosTarea)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonEliminarDocumentoTarea)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogAgregarTareaLayout = new javax.swing.GroupLayout(jDialogAgregarTarea.getContentPane());
        jDialogAgregarTarea.getContentPane().setLayout(jDialogAgregarTareaLayout);
        jDialogAgregarTareaLayout.setHorizontalGroup(
            jDialogAgregarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogAgregarTareaLayout.createSequentialGroup()
                .addGroup(jDialogAgregarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jDialogAgregarTareaLayout.createSequentialGroup()
                        .addGroup(jDialogAgregarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jDialogAgregarTareaLayout.createSequentialGroup()
                                .addGap(52, 52, 52)
                                .addGroup(jDialogAgregarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabelDescripcionAgregarTarea)
                                    .addGroup(jDialogAgregarTareaLayout.createSequentialGroup()
                                        .addComponent(jLabelHoraAgregarTarea)
                                        .addGap(4, 4, 4))
                                    .addComponent(jLabelLugarAgregarTarea)
                                    .addComponent(jLabelNumeroAgregarTarea)
                                    .addComponent(jLabelApoderadoTarea)))
                            .addGroup(jDialogAgregarTareaLayout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(jLabelFechaRealizacionAgregarTarea)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jDialogAgregarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 209, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogAgregarTareaLayout.createSequentialGroup()
                                .addComponent(jSpinFieldHoraTarea, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelHoraTextoTarea)
                                .addGap(12, 12, 12)
                                .addComponent(jSpinFieldMinutosTarea, javax.swing.GroupLayout.DEFAULT_SIZE, 71, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelMinutosTextoTarea))
                            .addComponent(jDateChooserFechaRealizacionTarea, javax.swing.GroupLayout.DEFAULT_SIZE, 209, Short.MAX_VALUE)
                            .addComponent(jTextFieldLugarAgregarTarea, javax.swing.GroupLayout.DEFAULT_SIZE, 209, Short.MAX_VALUE)
                            .addComponent(jTextFieldApoderadoTarea, javax.swing.GroupLayout.DEFAULT_SIZE, 209, Short.MAX_VALUE)
                            .addComponent(jTextFieldNumeroAgregarTarea, javax.swing.GroupLayout.DEFAULT_SIZE, 209, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonBuscarApoderadoTarea)
                        .addGap(261, 261, 261))
                    .addGroup(jDialogAgregarTareaLayout.createSequentialGroup()
                        .addContainerGap(12, Short.MAX_VALUE)
                        .addComponent(jButtonAceptarAgregarTarea)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonModificarTarea)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonGuardarModificacionTarea)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonEliminarTarea)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonCancelarAgregarTarea))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jDialogAgregarTareaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanelDocumentosRelacionadosTarea, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jDialogAgregarTareaLayout.setVerticalGroup(
            jDialogAgregarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAgregarTareaLayout.createSequentialGroup()
                .addGap(3, 3, 3)
                .addGroup(jDialogAgregarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldNumeroAgregarTarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelNumeroAgregarTarea))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jDialogAgregarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelFechaRealizacionAgregarTarea)
                    .addComponent(jDateChooserFechaRealizacionTarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jDialogAgregarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabelHoraAgregarTarea)
                    .addComponent(jLabelHoraTextoTarea)
                    .addComponent(jLabelMinutosTextoTarea)
                    .addComponent(jSpinFieldHoraTarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpinFieldMinutosTarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jDialogAgregarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelLugarAgregarTarea)
                    .addComponent(jTextFieldLugarAgregarTarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jDialogAgregarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelDescripcionAgregarTarea)
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jDialogAgregarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelApoderadoTarea)
                    .addComponent(jTextFieldApoderadoTarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonBuscarApoderadoTarea))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanelDocumentosRelacionadosTarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jDialogAgregarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonAceptarAgregarTarea)
                    .addComponent(jButtonModificarTarea)
                    .addComponent(jButtonGuardarModificacionTarea)
                    .addComponent(jButtonEliminarTarea)
                    .addComponent(jButtonCancelarAgregarTarea))
                .addContainerGap())
        );

        jDialogEliminarTarea.setTitle("ELIMINAR Tarea");
        jDialogEliminarTarea.setAlwaysOnTop(true);
        jDialogEliminarTarea.setMinimumSize(new java.awt.Dimension(300, 120));
        jDialogEliminarTarea.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        jLabelEliminarTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelEliminarTarea.setText("¿ Seguro que desea eliminar la Tarea?");

        jButtonSiEliminarTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonSiEliminarTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonSiEliminarTarea.setText("Sí");
        jButtonSiEliminarTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSiEliminarTareaActionPerformed(evt);
            }
        });

        jButtonNoEliminarTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonNoEliminarTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonNoEliminarTarea.setText("No");
        jButtonNoEliminarTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNoEliminarTareaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogEliminarTareaLayout = new javax.swing.GroupLayout(jDialogEliminarTarea.getContentPane());
        jDialogEliminarTarea.getContentPane().setLayout(jDialogEliminarTareaLayout);
        jDialogEliminarTareaLayout.setHorizontalGroup(
            jDialogEliminarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogEliminarTareaLayout.createSequentialGroup()
                .addGroup(jDialogEliminarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogEliminarTareaLayout.createSequentialGroup()
                        .addGap(21, 21, 21)
                        .addComponent(jLabelEliminarTarea))
                    .addGroup(jDialogEliminarTareaLayout.createSequentialGroup()
                        .addGap(50, 50, 50)
                        .addComponent(jButtonSiEliminarTarea)
                        .addGap(40, 40, 40)
                        .addComponent(jButtonNoEliminarTarea)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jDialogEliminarTareaLayout.setVerticalGroup(
            jDialogEliminarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogEliminarTareaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelEliminarTarea)
                .addGap(11, 11, 11)
                .addGroup(jDialogEliminarTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonSiEliminarTarea)
                    .addComponent(jButtonNoEliminarTarea))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogEliminarTramite.setTitle("ELIMINAR Trámite");
        jDialogEliminarTramite.setAlwaysOnTop(true);
        jDialogEliminarTramite.setMinimumSize(new java.awt.Dimension(300, 120));
        jDialogEliminarTramite.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        jLabelEliminarTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelEliminarTramite.setText("¿Seguro que desea eliminar el Trámite?");

        jButtonSiEliminarTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonSiEliminarTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonSiEliminarTramite.setText("Sí");
        jButtonSiEliminarTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSiEliminarTramiteActionPerformed(evt);
            }
        });

        jButtonNoEliminarTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonNoEliminarTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonNoEliminarTramite.setText("No");
        jButtonNoEliminarTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNoEliminarTramiteActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogEliminarTramiteLayout = new javax.swing.GroupLayout(jDialogEliminarTramite.getContentPane());
        jDialogEliminarTramite.getContentPane().setLayout(jDialogEliminarTramiteLayout);
        jDialogEliminarTramiteLayout.setHorizontalGroup(
            jDialogEliminarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogEliminarTramiteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelEliminarTramite)
                .addContainerGap(62, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogEliminarTramiteLayout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addComponent(jButtonSiEliminarTramite)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 55, Short.MAX_VALUE)
                .addComponent(jButtonNoEliminarTramite)
                .addGap(88, 88, 88))
        );
        jDialogEliminarTramiteLayout.setVerticalGroup(
            jDialogEliminarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogEliminarTramiteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelEliminarTramite)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jDialogEliminarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonNoEliminarTramite)
                    .addComponent(jButtonSiEliminarTramite))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogError.setTitle("Error");
        jDialogError.setMinimumSize(new java.awt.Dimension(500, 130));
        jDialogError.setModal(true);
        jDialogError.setResizable(false);

        jLabelTextoError.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelTextoError.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelTextoError.setText("Se produjo un error, cierre el programa y compruebe la conexión al servidor");

        jButtonAceptarError.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAceptarError.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAceptarError.setText("Aceptar");
        jButtonAceptarError.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarErrorActionPerformed(evt);
            }
        });

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/grandes/error.png"))); // NOI18N

        javax.swing.GroupLayout jDialogErrorLayout = new javax.swing.GroupLayout(jDialogError.getContentPane());
        jDialogError.getContentPane().setLayout(jDialogErrorLayout);
        jDialogErrorLayout.setHorizontalGroup(
            jDialogErrorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogErrorLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addGroup(jDialogErrorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogErrorLayout.createSequentialGroup()
                        .addGap(135, 135, 135)
                        .addComponent(jButtonAceptarError))
                    .addGroup(jDialogErrorLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelTextoError)))
                .addContainerGap(22, Short.MAX_VALUE))
        );
        jDialogErrorLayout.setVerticalGroup(
            jDialogErrorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogErrorLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(jDialogErrorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogErrorLayout.createSequentialGroup()
                        .addComponent(jLabelTextoError)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonAceptarError))
                    .addComponent(jLabel2))
                .addContainerGap(20, Short.MAX_VALUE))
        );

        jDialogAltaPersona.setTitle("Agregar Persona");
        jDialogAltaPersona.setMinimumSize(new java.awt.Dimension(450, 670));
        jDialogAltaPersona.setModal(true);
        jDialogAltaPersona.setResizable(false);

        jLabelDatosAltaPersona.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelDatosAltaPersona.setText("Datos Persona");

        jLabelNombreAltaPersona.setText("Nombre y Apellido");

        jLabelTipoDocAltaPersona.setText("Tipo de documento");

        jComboBoxTipoDocumentoAltaPersona.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "DNI", "LE", "LC", "Pasaporte" }));

        jLabelNroDocAltaPersona.setText("Número de documento");

        jLabelDireccionAltaPersona.setText("Dirección");

        jLabelTelefonoAltaPersona.setText("Teléfono");

        jLabelTelefonoAltAltaPersona.setText("Teléfono alternativo");

        jLabelEmailAltaPersona.setText("E-mail");

        jLabelCodPostalAltaPersona.setText("Código Postal");

        jLabelLocalidadAltaPersona.setText("Localidad");

        jButtonConfirmarAltaPersona.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonConfirmarAltaPersona.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonConfirmarAltaPersona.setText("Confirmar");
        jButtonConfirmarAltaPersona.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConfirmarAltaPersonaActionPerformed(evt);
            }
        });

        jButtonCancelarAltaPersona.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelarAltaPersona.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarAltaPersona.setText("Cancelar");
        jButtonCancelarAltaPersona.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarAltaPersonaActionPerformed(evt);
            }
        });

        jLabelTipoPersonaAltaPersona.setText("Tipo");

        jComboBoxTipoPersonaAltaPersona.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Persona Fisica", "Persona Juridica" }));
        jComboBoxTipoPersonaAltaPersona.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBoxTipoPersonaAltaPersonaItemStateChanged(evt);
            }
        });

        jLabelAbogadoAltaPersona.setText("Abogado");

        jComboBoxAbogadoAltaPersona.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "No", "Si" }));
        jComboBoxAbogadoAltaPersona.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBoxAbogadoAltaPersonaItemStateChanged(evt);
            }
        });

        jLabelNroMatriculaAltaPersona.setText("Número de matrícula");

        javax.swing.GroupLayout jDialogAltaPersonaLayout = new javax.swing.GroupLayout(jDialogAltaPersona.getContentPane());
        jDialogAltaPersona.getContentPane().setLayout(jDialogAltaPersonaLayout);
        jDialogAltaPersonaLayout.setHorizontalGroup(
            jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAltaPersonaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelDatosAltaPersona)
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogAltaPersonaLayout.createSequentialGroup()
                .addGap(42, 42, 42)
                .addGroup(jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelCodPostalAltaPersona)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogAltaPersonaLayout.createSequentialGroup()
                        .addGroup(jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelTipoDocAltaPersona)
                            .addComponent(jLabelNroDocAltaPersona)
                            .addComponent(jLabelDireccionAltaPersona)
                            .addComponent(jLabelTelefonoAltaPersona)
                            .addComponent(jLabelTelefonoAltAltaPersona)
                            .addComponent(jLabelEmailAltaPersona)
                            .addComponent(jLabelTipoPersonaAltaPersona)
                            .addComponent(jLabelNombreAltaPersona)
                            .addComponent(jLabelAbogadoAltaPersona)
                            .addComponent(jLabelLocalidadAltaPersona)
                            .addComponent(jLabelNroMatriculaAltaPersona))
                        .addGap(50, 50, 50)
                        .addGroup(jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldTelefono2AltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldNombreAltaPersona, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBoxTipoPersonaAltaPersona, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldEmailAltaPersona, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldTelefonoAltaPersona, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldDireccionAltaPersona, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldNumeroDocumentoAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBoxTipoDocumentoAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldCodPostalAltaPersona, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldLocalidadAltaPersona, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBoxAbogadoAltaPersona, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldNroMatriculaAltaPersona, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogAltaPersonaLayout.createSequentialGroup()
                        .addComponent(jButtonConfirmarAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonCancelarAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(864, 864, 864))
        );
        jDialogAltaPersonaLayout.setVerticalGroup(
            jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAltaPersonaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelDatosAltaPersona)
                .addGap(18, 18, 18)
                .addGroup(jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTipoPersonaAltaPersona)
                    .addComponent(jComboBoxTipoPersonaAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNombreAltaPersona)
                    .addComponent(jTextFieldNombreAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBoxTipoDocumentoAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelTipoDocAltaPersona))
                .addGap(18, 18, 18)
                .addGroup(jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldNumeroDocumentoAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelNroDocAltaPersona))
                .addGap(18, 18, 18)
                .addGroup(jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldDireccionAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelDireccionAltaPersona))
                .addGap(18, 18, 18)
                .addGroup(jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldTelefonoAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelTelefonoAltaPersona))
                .addGap(18, 18, 18)
                .addGroup(jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTelefonoAltAltaPersona)
                    .addComponent(jTextFieldTelefono2AltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldEmailAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelEmailAltaPersona))
                .addGap(18, 18, 18)
                .addGroup(jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelCodPostalAltaPersona)
                    .addComponent(jTextFieldCodPostalAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelLocalidadAltaPersona)
                    .addComponent(jTextFieldLocalidadAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelAbogadoAltaPersona)
                    .addComponent(jComboBoxAbogadoAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNroMatriculaAltaPersona)
                    .addComponent(jTextFieldNroMatriculaAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 27, Short.MAX_VALUE)
                .addGroup(jDialogAltaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonCancelarAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonConfirmarAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(31, 31, 31))
        );

        jDialogAdvertencia.setTitle("Advertencia");
        jDialogAdvertencia.setMinimumSize(new java.awt.Dimension(600, 200));
        jDialogAdvertencia.setModal(true);

        jLabelTextoAdvertencia.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelTextoAdvertencia.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelTextoAdvertencia.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/grandes/advertencia.png"))); // NOI18N
        jLabelTextoAdvertencia.setText("Se produjo un error, cierre el programa y compruebe la conexión al servidor");

        jButtonAceptarAdvertencia.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAceptarAdvertencia.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAceptarAdvertencia.setText("Aceptar");
        jButtonAceptarAdvertencia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarAdvertenciaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogAdvertenciaLayout = new javax.swing.GroupLayout(jDialogAdvertencia.getContentPane());
        jDialogAdvertencia.getContentPane().setLayout(jDialogAdvertenciaLayout);
        jDialogAdvertenciaLayout.setHorizontalGroup(
            jDialogAdvertenciaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAdvertenciaLayout.createSequentialGroup()
                .addGroup(jDialogAdvertenciaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogAdvertenciaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabelTextoAdvertencia))
                    .addGroup(jDialogAdvertenciaLayout.createSequentialGroup()
                        .addGap(211, 211, 211)
                        .addComponent(jButtonAceptarAdvertencia)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jDialogAdvertenciaLayout.setVerticalGroup(
            jDialogAdvertenciaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAdvertenciaLayout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(jLabelTextoAdvertencia)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButtonAceptarAdvertencia)
                .addContainerGap(23, Short.MAX_VALUE))
        );

        jDialogBajaPersona.setTitle("Eliminar Persona");
        jDialogBajaPersona.setMinimumSize(new java.awt.Dimension(400, 140));
        jDialogBajaPersona.setModal(true);
        jDialogBajaPersona.setResizable(false);

        jLabelMensajeBajaPersona.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelMensajeBajaPersona.setText("¿Está seguro que desea eliminar esta persona?");

        jButtonNoBajaPersona.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonNoBajaPersona.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonNoBajaPersona.setText("No");
        jButtonNoBajaPersona.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNoBajaPersonaActionPerformed(evt);
            }
        });

        jButtonSiBajaPersona.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonSiBajaPersona.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonSiBajaPersona.setText("Si");
        jButtonSiBajaPersona.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSiBajaPersonaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogBajaPersonaLayout = new javax.swing.GroupLayout(jDialogBajaPersona.getContentPane());
        jDialogBajaPersona.getContentPane().setLayout(jDialogBajaPersonaLayout);
        jDialogBajaPersonaLayout.setHorizontalGroup(
            jDialogBajaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogBajaPersonaLayout.createSequentialGroup()
                .addGap(49, 49, 49)
                .addGroup(jDialogBajaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelMensajeBajaPersona)
                    .addGroup(jDialogBajaPersonaLayout.createSequentialGroup()
                        .addGap(42, 42, 42)
                        .addComponent(jButtonSiBajaPersona)
                        .addGap(60, 60, 60)
                        .addComponent(jButtonNoBajaPersona)))
                .addContainerGap(56, Short.MAX_VALUE))
        );
        jDialogBajaPersonaLayout.setVerticalGroup(
            jDialogBajaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogBajaPersonaLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(jLabelMensajeBajaPersona)
                .addGap(26, 26, 26)
                .addGroup(jDialogBajaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonSiBajaPersona)
                    .addComponent(jButtonNoBajaPersona))
                .addContainerGap(25, Short.MAX_VALUE))
        );

        jDialogConsultaPersona.setTitle("Detalles Persona");
        jDialogConsultaPersona.setMinimumSize(new java.awt.Dimension(1150, 700));
        jDialogConsultaPersona.setModal(true);
        jDialogConsultaPersona.setResizable(false);

        jLabelNumDocDetallesPersona.setText("Número de documento");

        jComboBoxTipoDocDetallesPersona.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "DNI", "LE", "LC", "Pasaporte" }));
        jComboBoxTipoDocDetallesPersona.setEnabled(false);

        jLabelTipoDocDetallesPersona.setText("Tipo de documento");

        jTextFieldCodPostalDetallesPersona.setEnabled(false);

        jTextFieldLocalidadDetallesPersona.setEnabled(false);

        jLabelNombreDetallesPersona.setText("Nombre y Apellido");

        jTextFieldTelefono2DetallesPersona.setEnabled(false);

        jTextFieldNombreDetallesPersona.setEnabled(false);

        jTextFieldEmailDetallesPersona.setEnabled(false);

        jLabelDatosDetallesPersona.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelDatosDetallesPersona.setText("Datos Persona");

        jTextFieldTelefonoDetallesPersona.setEnabled(false);

        jTextFieldDireccionDetallesPersona.setEnabled(false);

        jLabelLocalidadDetallesPersona.setText("Localidad");

        jLabelCodPostalDetallesPersona.setText("Código Postal");

        jLabelEmailDetallesPersona.setText("E-mail");

        jLabelTelefono2DetallesPersona.setText("Teléfono alternativo");

        jTextFieldNroDocDetallesPersona.setEnabled(false);

        jLabelTelefonoDetallesPersona.setText("Teléfono");

        jLabelDireccionDetallesPersona.setText("Dirección");

        jTableCausasDetallesPersona.setModel(this.datosCausasReducidos);
        jTableCausasDetallesPersona.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableCausasDetallesPersonaMouseClicked(evt);
            }
        });
        jScrollPaneCausasDetallesPersona.setViewportView(jTableCausasDetallesPersona);

        jLabelCausasDetallesPersona.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelCausasDetallesPersona.setText("Causas relacionadas");

        jLabelTramitesDetallesPersona.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelTramitesDetallesPersona.setText("Trámites relacionadas");

        jTableTramitesDetallesPersona.setModel(this.datosTramitesReducidos);
        jTableTramitesDetallesPersona.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableTramitesDetallesPersonaMouseClicked(evt);
            }
        });
        jScrollPaneTramitesDetallesPersona.setViewportView(jTableTramitesDetallesPersona);

        jButtonModificarDetallesPersona.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonModificarDetallesPersona.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/modificar.png"))); // NOI18N
        jButtonModificarDetallesPersona.setText("Modificar Datos");
        jButtonModificarDetallesPersona.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonModificarDetallesPersonaActionPerformed(evt);
            }
        });

        jButtonGuardarDetallesPersona.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonGuardarDetallesPersona.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/guardar.png"))); // NOI18N
        jButtonGuardarDetallesPersona.setText("Guardar cambios");
        jButtonGuardarDetallesPersona.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarDetallesPersonaActionPerformed(evt);
            }
        });

        jButtonCancelarDetallesPersona.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelarDetallesPersona.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarDetallesPersona.setText("Cancelar");
        jButtonCancelarDetallesPersona.setFocusable(false);
        jButtonCancelarDetallesPersona.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarDetallesPersonaActionPerformed(evt);
            }
        });

        jLabelCuenta.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelCuenta.setText("Cuenta corriente");

        jTableCuentaCorriente.setModel(this.datosMovimientos);
        jTableCuentaCorriente.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableCuentaCorrienteMouseClicked(evt);
            }
        });
        jScrollPaneCuentaCorriente.setViewportView(jTableCuentaCorriente);

        jButtonAgregarMovimientoCuentaCorriente.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAgregarMovimientoCuentaCorriente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/agregar.png"))); // NOI18N
        jButtonAgregarMovimientoCuentaCorriente.setText("Agregar Movimiento");
        jButtonAgregarMovimientoCuentaCorriente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAgregarMovimientoCuentaCorrienteActionPerformed(evt);
            }
        });

        jPanelBuscarMovimientos.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabelDescripcionBuscarMovimiento.setText("Descripción:");

        jLabelHaberBuscarMovimiento.setText("Haber:");

        jLabelDebeBuscarMovimiento.setText("Debe:");

        jLabelFechaBuscarMovimiento.setText("Fecha:");

        jButtonBuscarMovimiento.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBuscarMovimiento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarMovimiento.setText("Buscar");
        jButtonBuscarMovimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarMovimientoActionPerformed(evt);
            }
        });

        jButtonDeshacerBuscarMovimiento.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonDeshacerBuscarMovimiento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/flechaatras.png"))); // NOI18N
        jButtonDeshacerBuscarMovimiento.setText("Deshacer Búsqueda");
        jButtonDeshacerBuscarMovimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeshacerBuscarMovimientoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarMovimientosLayout = new javax.swing.GroupLayout(jPanelBuscarMovimientos);
        jPanelBuscarMovimientos.setLayout(jPanelBuscarMovimientosLayout);
        jPanelBuscarMovimientosLayout.setHorizontalGroup(
            jPanelBuscarMovimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarMovimientosLayout.createSequentialGroup()
                .addGroup(jPanelBuscarMovimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelBuscarMovimientosLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonDeshacerBuscarMovimiento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jPanelBuscarMovimientosLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonBuscarMovimiento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelBuscarMovimientosLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanelBuscarMovimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelDebeBuscarMovimiento)
                            .addComponent(jLabelFechaBuscarMovimiento)
                            .addComponent(jLabelHaberBuscarMovimiento)
                            .addComponent(jLabelDescripcionBuscarMovimiento))
                        .addGap(28, 28, 28)
                        .addGroup(jPanelBuscarMovimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jDateChooserFechaBuscarMovimiento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jTextFieldDescripcionBuscarMovimiento, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)
                            .addComponent(jTextFieldDebeBuscarMovimiento, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)
                            .addComponent(jTextFieldHaberBuscarMovimiento, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(27, Short.MAX_VALUE))
        );
        jPanelBuscarMovimientosLayout.setVerticalGroup(
            jPanelBuscarMovimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarMovimientosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelBuscarMovimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabelFechaBuscarMovimiento)
                    .addComponent(jDateChooserFechaBuscarMovimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelBuscarMovimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldDebeBuscarMovimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelDebeBuscarMovimiento))
                .addGap(18, 18, 18)
                .addGroup(jPanelBuscarMovimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldHaberBuscarMovimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelHaberBuscarMovimiento))
                .addGap(18, 18, 18)
                .addGroup(jPanelBuscarMovimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelDescripcionBuscarMovimiento)
                    .addComponent(jTextFieldDescripcionBuscarMovimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonBuscarMovimiento)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonDeshacerBuscarMovimiento)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabelTextoTotalDebe.setText("Total Debe:");

        jLabelTotalDebeMovimientos.setText("Numero");

        jLabelTextoTotalHaber.setText("Total Haber:");

        jLabelTextoTotal.setText("Total:");

        jLabelTotalHaberMovimientos.setText("Numero");

        jLabelTotalMovimientos.setText("Numero");

        javax.swing.GroupLayout jPanelCuentaCorrienteLayout = new javax.swing.GroupLayout(jPanelCuentaCorriente);
        jPanelCuentaCorriente.setLayout(jPanelCuentaCorrienteLayout);
        jPanelCuentaCorrienteLayout.setHorizontalGroup(
            jPanelCuentaCorrienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCuentaCorrienteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelCuentaCorrienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jLabelCuenta, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelTextoTotalDebe, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPaneCuentaCorriente, javax.swing.GroupLayout.Alignment.LEADING, 0, 0, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelCuentaCorrienteLayout.createSequentialGroup()
                        .addGap(60, 60, 60)
                        .addGroup(jPanelCuentaCorrienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jPanelBuscarMovimientos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanelCuentaCorrienteLayout.createSequentialGroup()
                                .addComponent(jLabelTotalDebeMovimientos)
                                .addGap(28, 28, 28)
                                .addComponent(jLabelTextoTotalHaber)
                                .addGap(18, 18, 18)
                                .addComponent(jLabelTotalHaberMovimientos)
                                .addGap(36, 36, 36)
                                .addComponent(jLabelTextoTotal)))
                        .addGap(18, 18, 18)
                        .addComponent(jLabelTotalMovimientos)))
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelCuentaCorrienteLayout.createSequentialGroup()
                .addContainerGap(110, Short.MAX_VALUE)
                .addComponent(jButtonAgregarMovimientoCuentaCorriente)
                .addGap(106, 106, 106))
        );
        jPanelCuentaCorrienteLayout.setVerticalGroup(
            jPanelCuentaCorrienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCuentaCorrienteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelCuenta)
                .addGap(18, 18, 18)
                .addComponent(jScrollPaneCuentaCorriente, javax.swing.GroupLayout.PREFERRED_SIZE, 196, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelCuentaCorrienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTextoTotalDebe)
                    .addComponent(jLabelTextoTotalHaber)
                    .addComponent(jLabelTextoTotal)
                    .addComponent(jLabelTotalDebeMovimientos)
                    .addComponent(jLabelTotalHaberMovimientos)
                    .addComponent(jLabelTotalMovimientos))
                .addGap(18, 18, 18)
                .addComponent(jButtonAgregarMovimientoCuentaCorriente)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanelBuscarMovimientos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(21, Short.MAX_VALUE))
        );

        jLabelTipoDetallesPersona.setText("Tipo");

        jComboBoxTipoDetallesPersona.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Persona Fisica", "Persona Juridica" }));
        jComboBoxTipoDetallesPersona.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBoxTipoDetallesPersonaItemStateChanged(evt);
            }
        });

        jLabelAbogadoDetallesPersona.setText("Abogado");

        jTextFieldNroMatriculaDetallesPersona.setEnabled(false);

        jComboBoxAbogadoDetallesPersona.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "No", "Si" }));
        jComboBoxAbogadoDetallesPersona.setEnabled(false);
        jComboBoxAbogadoDetallesPersona.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBoxAbogadoDetallesPersonaItemStateChanged(evt);
            }
        });

        jLabelNroMatriculaDetallesPersona.setText("Número de matrícula");

        jButtonEliminarDetallesPersona.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarDetallesPersona.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/eliminar.png"))); // NOI18N
        jButtonEliminarDetallesPersona.setText("Eliminar Persona");
        jButtonEliminarDetallesPersona.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarDetallesPersonaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogConsultaPersonaLayout = new javax.swing.GroupLayout(jDialogConsultaPersona.getContentPane());
        jDialogConsultaPersona.getContentPane().setLayout(jDialogConsultaPersonaLayout);
        jDialogConsultaPersonaLayout.setHorizontalGroup(
            jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaPersonaLayout.createSequentialGroup()
                .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogConsultaPersonaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabelDatosDetallesPersona))
                    .addGroup(jDialogConsultaPersonaLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jDialogConsultaPersonaLayout.createSequentialGroup()
                                .addComponent(jButtonEliminarDetallesPersona)
                                .addGap(18, 18, 18)
                                .addComponent(jButtonModificarDetallesPersona)
                                .addGap(18, 18, 18)
                                .addComponent(jButtonGuardarDetallesPersona)
                                .addGap(18, 18, 18)
                                .addComponent(jButtonCancelarDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jDialogConsultaPersonaLayout.createSequentialGroup()
                                .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jDialogConsultaPersonaLayout.createSequentialGroup()
                                        .addComponent(jLabelTipoDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jComboBoxTipoDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jDialogConsultaPersonaLayout.createSequentialGroup()
                                        .addComponent(jLabelNombreDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jTextFieldNombreDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jDialogConsultaPersonaLayout.createSequentialGroup()
                                        .addComponent(jLabelTipoDocDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jComboBoxTipoDocDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jDialogConsultaPersonaLayout.createSequentialGroup()
                                        .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabelNumDocDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabelDireccionDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabelTelefonoDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabelTelefono2DetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(18, 18, 18)
                                        .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addComponent(jTextFieldTelefonoDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jTextFieldTelefono2DetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addComponent(jTextFieldDireccionDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTextFieldNroDocDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(jDialogConsultaPersonaLayout.createSequentialGroup()
                                        .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabelNroMatriculaDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabelAbogadoDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(18, 18, 18)
                                        .addComponent(jTextFieldNroMatriculaDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jDialogConsultaPersonaLayout.createSequentialGroup()
                                        .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabelEmailDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabelCodPostalDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabelLocalidadDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(18, 18, 18)
                                        .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addComponent(jTextFieldEmailDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jTextFieldCodPostalDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addComponent(jComboBoxAbogadoDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTextFieldLocalidadDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                .addGap(53, 53, 53)
                                .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jScrollPaneTramitesDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabelTramitesDetallesPersona)
                                    .addComponent(jLabelCausasDetallesPersona)
                                    .addComponent(jScrollPaneCausasDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 38, Short.MAX_VALUE)
                .addComponent(jPanelCuentaCorriente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        jDialogConsultaPersonaLayout.setVerticalGroup(
            jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaPersonaLayout.createSequentialGroup()
                .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogConsultaPersonaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelDatosDetallesPersona)
                            .addComponent(jLabelCausasDetallesPersona))
                        .addGap(17, 17, 17)
                        .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jDialogConsultaPersonaLayout.createSequentialGroup()
                                .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabelTipoDetallesPersona)
                                    .addComponent(jComboBoxTipoDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(18, 18, 18)
                                .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabelNombreDetallesPersona)
                                    .addComponent(jTextFieldNombreDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(18, 18, 18)
                                .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabelTipoDocDetallesPersona)
                                    .addComponent(jComboBoxTipoDocDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(24, 24, 24)
                                .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabelNumDocDetallesPersona)
                                    .addComponent(jTextFieldNroDocDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(18, 18, 18)
                                .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabelDireccionDetallesPersona)
                                    .addComponent(jTextFieldDireccionDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(18, 18, 18)
                                .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jTextFieldTelefonoDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabelTelefonoDetallesPersona))
                                .addGap(18, 18, 18)
                                .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jTextFieldTelefono2DetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabelTelefono2DetallesPersona)
                                    .addComponent(jLabelTramitesDetallesPersona)))
                            .addComponent(jScrollPaneCausasDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 194, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jDialogConsultaPersonaLayout.createSequentialGroup()
                                .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jTextFieldEmailDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabelEmailDetallesPersona))
                                .addGap(18, 18, 18)
                                .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabelCodPostalDetallesPersona)
                                    .addComponent(jTextFieldCodPostalDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(18, 18, 18)
                                .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jTextFieldLocalidadDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabelLocalidadDetallesPersona))
                                .addGap(18, 18, 18)
                                .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jComboBoxAbogadoDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabelAbogadoDetallesPersona))
                                .addGap(18, 18, 18)
                                .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabelNroMatriculaDetallesPersona)
                                    .addComponent(jTextFieldNroMatriculaDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(jScrollPaneTramitesDetallesPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(48, 48, 48)
                        .addGroup(jDialogConsultaPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButtonEliminarDetallesPersona)
                            .addComponent(jButtonModificarDetallesPersona)
                            .addComponent(jButtonGuardarDetallesPersona)
                            .addComponent(jButtonCancelarDetallesPersona)))
                    .addComponent(jPanelCuentaCorriente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        jDialogEliminarMovimiento.setTitle("Eliminar Movimiento");
        jDialogEliminarMovimiento.setMinimumSize(new java.awt.Dimension(350, 150));
        jDialogEliminarMovimiento.setModal(true);
        jDialogEliminarMovimiento.setResizable(false);

        jButtonSiEliminarMovimiento.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonSiEliminarMovimiento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonSiEliminarMovimiento.setText("Si");
        jButtonSiEliminarMovimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSiEliminarMovimientoActionPerformed(evt);
            }
        });

        jButtonNoEliminarMovimiento.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonNoEliminarMovimiento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonNoEliminarMovimiento.setText("No");
        jButtonNoEliminarMovimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNoEliminarMovimientoActionPerformed(evt);
            }
        });

        jLabelMensajeEliminarMovimiento.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelMensajeEliminarMovimiento.setText("¿Está seguro que desea eliminar este movimiento?");

        javax.swing.GroupLayout jDialogEliminarMovimientoLayout = new javax.swing.GroupLayout(jDialogEliminarMovimiento.getContentPane());
        jDialogEliminarMovimiento.getContentPane().setLayout(jDialogEliminarMovimientoLayout);
        jDialogEliminarMovimientoLayout.setHorizontalGroup(
            jDialogEliminarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGroup(jDialogEliminarMovimientoLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jDialogEliminarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelMensajeEliminarMovimiento)
                    .addGroup(jDialogEliminarMovimientoLayout.createSequentialGroup()
                        .addGap(54, 54, 54)
                        .addComponent(jButtonSiEliminarMovimiento)
                        .addGap(61, 61, 61)
                        .addComponent(jButtonNoEliminarMovimiento)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jDialogEliminarMovimientoLayout.setVerticalGroup(
            jDialogEliminarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 88, Short.MAX_VALUE)
            .addGap(0, 88, Short.MAX_VALUE)
            .addGap(0, 88, Short.MAX_VALUE)
            .addGap(0, 88, Short.MAX_VALUE)
            .addGroup(jDialogEliminarMovimientoLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(jLabelMensajeEliminarMovimiento)
                .addGap(18, 18, 18)
                .addGroup(jDialogEliminarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonSiEliminarMovimiento)
                    .addComponent(jButtonNoEliminarMovimiento))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogConfirmacion.setTitle("Confirmación");
        jDialogConfirmacion.setMinimumSize(new java.awt.Dimension(400, 150));
        jDialogConfirmacion.setModal(true);
        jDialogConfirmacion.setResizable(false);

        jLabelTextoConfirmacion.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelTextoConfirmacion.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelTextoConfirmacion.setText("Mensaje");

        jButtonAceptarConfirmacion.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAceptarConfirmacion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAceptarConfirmacion.setText("Aceptar");
        jButtonAceptarConfirmacion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarConfirmacionActionPerformed(evt);
            }
        });

        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/grandes/confirmacion.png"))); // NOI18N

        javax.swing.GroupLayout jDialogConfirmacionLayout = new javax.swing.GroupLayout(jDialogConfirmacion.getContentPane());
        jDialogConfirmacion.getContentPane().setLayout(jDialogConfirmacionLayout);
        jDialogConfirmacionLayout.setHorizontalGroup(
            jDialogConfirmacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConfirmacionLayout.createSequentialGroup()
                .addGap(31, 31, 31)
                .addComponent(jLabel3)
                .addGap(11, 11, 11)
                .addGroup(jDialogConfirmacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogConfirmacionLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(jLabelTextoConfirmacion, javax.swing.GroupLayout.DEFAULT_SIZE, 273, Short.MAX_VALUE)
                        .addGap(58, 58, 58))
                    .addGroup(jDialogConfirmacionLayout.createSequentialGroup()
                        .addGap(100, 100, 100)
                        .addComponent(jButtonAceptarConfirmacion)
                        .addContainerGap())))
        );
        jDialogConfirmacionLayout.setVerticalGroup(
            jDialogConfirmacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConfirmacionLayout.createSequentialGroup()
                .addGroup(jDialogConfirmacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogConfirmacionLayout.createSequentialGroup()
                        .addGap(35, 35, 35)
                        .addComponent(jLabelTextoConfirmacion)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jButtonAceptarConfirmacion))
                    .addGroup(jDialogConfirmacionLayout.createSequentialGroup()
                        .addGap(24, 24, 24)
                        .addComponent(jLabel3)))
                .addContainerGap(80, Short.MAX_VALUE))
        );

        jDialogAgregarMovimiento.setTitle("Agregar Movimiento");
        jDialogAgregarMovimiento.setMinimumSize(new java.awt.Dimension(400, 390));
        jDialogAgregarMovimiento.setModal(true);
        jDialogAgregarMovimiento.setResizable(false);

        agregarMovFecha.setText("Fecha:");

        agregarMovDebe.setText("Debe:");

        agregarMovHaber.setText("Haber:");

        jButtonAceptarAgregarMov.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAceptarAgregarMov.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAceptarAgregarMov.setText("Confirmar");
        jButtonAceptarAgregarMov.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarAgregarMovActionPerformed(evt);
            }
        });

        jButtonCancelarAgregarMov.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelarAgregarMov.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarAgregarMov.setText("Cancelar");
        jButtonCancelarAgregarMov.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarAgregarMovActionPerformed(evt);
            }
        });

        jTextFieldDebeMovimiento2.setText("0");

        jTextFieldHaberMovimiento2.setText("0");

        jLabel1.setText("Descrpición:");

        jTextAreaDescripcionMovimiento2.setColumns(20);
        jTextAreaDescripcionMovimiento2.setRows(5);
        jScrollPane4.setViewportView(jTextAreaDescripcionMovimiento2);

        javax.swing.GroupLayout jDialogAgregarMovimientoLayout = new javax.swing.GroupLayout(jDialogAgregarMovimiento.getContentPane());
        jDialogAgregarMovimiento.getContentPane().setLayout(jDialogAgregarMovimientoLayout);
        jDialogAgregarMovimientoLayout.setHorizontalGroup(
            jDialogAgregarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAgregarMovimientoLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jDialogAgregarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogAgregarMovimientoLayout.createSequentialGroup()
                        .addComponent(jButtonAceptarAgregarMov)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonCancelarAgregarMov))
                    .addGroup(jDialogAgregarMovimientoLayout.createSequentialGroup()
                        .addGroup(jDialogAgregarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(agregarMovDebe)
                            .addComponent(agregarMovFecha)
                            .addComponent(agregarMovHaber)
                            .addComponent(jLabel1))
                        .addGap(18, 18, 18)
                        .addGroup(jDialogAgregarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jScrollPane4)
                            .addComponent(jTextFieldHaberMovimiento2)
                            .addComponent(jTextFieldDebeMovimiento2)
                            .addComponent(jDateChooserFechaMovimiento2, javax.swing.GroupLayout.PREFERRED_SIZE, 194, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(44, Short.MAX_VALUE))
        );
        jDialogAgregarMovimientoLayout.setVerticalGroup(
            jDialogAgregarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAgregarMovimientoLayout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addGroup(jDialogAgregarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(agregarMovFecha)
                    .addComponent(jDateChooserFechaMovimiento2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogAgregarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(agregarMovDebe)
                    .addComponent(jTextFieldDebeMovimiento2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogAgregarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldHaberMovimiento2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(agregarMovHaber))
                .addGap(18, 18, 18)
                .addGroup(jDialogAgregarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(30, 30, 30)
                .addGroup(jDialogAgregarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonCancelarAgregarMov)
                    .addComponent(jButtonAceptarAgregarMov))
                .addContainerGap(31, Short.MAX_VALUE))
        );

        jDialogBuscarApoderadoTramite.setTitle("Selección de APODERADO");
        jDialogBuscarApoderadoTramite.setAlwaysOnTop(true);
        jDialogBuscarApoderadoTramite.setMinimumSize(new java.awt.Dimension(1100, 450));
        jDialogBuscarApoderadoTramite.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        jPanelApoderadoTramite.setPreferredSize(new java.awt.Dimension(1019, 400));

        jTableBuscarApoderadoTramite.setModel(this.datosPersonas);
        jTableBuscarApoderadoTramite.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableBuscarApoderadoTramiteMouseClicked(evt);
            }
        });
        jScrollPaneBuscarApoderadoTramite.setViewportView(jTableBuscarApoderadoTramite);

        jPanelBuscarApoderadoTramite.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabelTelefonoBuscarApoderadoTramite.setText("Teléfono:");

        jLabelDireccionBuscarApoderadoTramite.setText("Dirección:");

        jTextFieldNombreBuscarApoderadoTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldNombreBuscarApoderadoTramiteActionPerformed(evt);
            }
        });

        jLabelNombreBuscarApoderadoTramite.setText("Nombre:");

        jLabelDocumentoBuscarApoderadoTramite.setText("Número Documento:");

        jLabelEmailBuscarApoderadoTramite.setText("Email:");

        jLabelTipoDocumentoBuscarApoderadoCausa.setText("Tipo Documento:");

        jComboBoxTipoDocumentoBuscarApoderadoTramite.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "", "DNI", "LC", "LE", "Pasaporte", "CUIT" }));

        jButtonBuscarApoderadoTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBuscarApoderadoTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarApoderadoTramite.setText("Buscar");
        jButtonBuscarApoderadoTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarApoderadoTramiteActionPerformed(evt);
            }
        });

        jButtonDeshacerBusquedaApoderadoTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonDeshacerBusquedaApoderadoTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/flechaatras.png"))); // NOI18N
        jButtonDeshacerBusquedaApoderadoTramite.setText("Deshacer Búsqueda");
        jButtonDeshacerBusquedaApoderadoTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeshacerBusquedaApoderadoTramiteActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarApoderadoTramiteLayout = new javax.swing.GroupLayout(jPanelBuscarApoderadoTramite);
        jPanelBuscarApoderadoTramite.setLayout(jPanelBuscarApoderadoTramiteLayout);
        jPanelBuscarApoderadoTramiteLayout.setHorizontalGroup(
            jPanelBuscarApoderadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarApoderadoTramiteLayout.createSequentialGroup()
                .addGroup(jPanelBuscarApoderadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelBuscarApoderadoTramiteLayout.createSequentialGroup()
                        .addGap(27, 27, 27)
                        .addComponent(jLabelTipoDocumentoBuscarApoderadoCausa)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBoxTipoDocumentoBuscarApoderadoTramite, 0, 0, Short.MAX_VALUE))
                    .addGroup(jPanelBuscarApoderadoTramiteLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanelBuscarApoderadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelNombreBuscarApoderadoTramite)
                            .addComponent(jLabelDocumentoBuscarApoderadoTramite)
                            .addComponent(jLabelDireccionBuscarApoderadoTramite)
                            .addComponent(jLabelTelefonoBuscarApoderadoTramite)
                            .addComponent(jLabelEmailBuscarApoderadoTramite))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelBuscarApoderadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldEmailBuscarApoderadoTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                            .addComponent(jTextFieldTelefonoBuscarApoderadoTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                            .addComponent(jTextFieldDireccionBuscarApoderadoTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                            .addComponent(jTextFieldNombreBuscarApoderadoTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                            .addComponent(jTextFieldDocumentoBuscarApoderadoTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)))
                    .addGroup(jPanelBuscarApoderadoTramiteLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonBuscarApoderadoTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE))
                    .addGroup(jPanelBuscarApoderadoTramiteLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonDeshacerBusquedaApoderadoTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelBuscarApoderadoTramiteLayout.setVerticalGroup(
            jPanelBuscarApoderadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarApoderadoTramiteLayout.createSequentialGroup()
                .addGroup(jPanelBuscarApoderadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelTipoDocumentoBuscarApoderadoCausa)
                    .addComponent(jComboBoxTipoDocumentoBuscarApoderadoTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelBuscarApoderadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelDocumentoBuscarApoderadoTramite)
                    .addComponent(jTextFieldDocumentoBuscarApoderadoTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarApoderadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNombreBuscarApoderadoTramite)
                    .addComponent(jTextFieldNombreBuscarApoderadoTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarApoderadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelDireccionBuscarApoderadoTramite)
                    .addComponent(jTextFieldDireccionBuscarApoderadoTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarApoderadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTelefonoBuscarApoderadoTramite)
                    .addComponent(jTextFieldTelefonoBuscarApoderadoTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarApoderadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelEmailBuscarApoderadoTramite)
                    .addComponent(jTextFieldEmailBuscarApoderadoTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jButtonBuscarApoderadoTramite)
                .addGap(18, 18, 18)
                .addComponent(jButtonDeshacerBusquedaApoderadoTramite)
                .addContainerGap(23, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanelApoderadoTramiteLayout = new javax.swing.GroupLayout(jPanelApoderadoTramite);
        jPanelApoderadoTramite.setLayout(jPanelApoderadoTramiteLayout);
        jPanelApoderadoTramiteLayout.setHorizontalGroup(
            jPanelApoderadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelApoderadoTramiteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPaneBuscarApoderadoTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 745, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelBuscarApoderadoTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanelApoderadoTramiteLayout.setVerticalGroup(
            jPanelApoderadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelApoderadoTramiteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelApoderadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jPanelBuscarApoderadoTramite, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPaneBuscarApoderadoTramite, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE))
                .addContainerGap(95, Short.MAX_VALUE))
        );

        jScrollPaneApoderadoTramite.setViewportView(jPanelApoderadoTramite);

        javax.swing.GroupLayout jDialogBuscarApoderadoTramiteLayout = new javax.swing.GroupLayout(jDialogBuscarApoderadoTramite.getContentPane());
        jDialogBuscarApoderadoTramite.getContentPane().setLayout(jDialogBuscarApoderadoTramiteLayout);
        jDialogBuscarApoderadoTramiteLayout.setHorizontalGroup(
            jDialogBuscarApoderadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPaneApoderadoTramite, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 1001, Short.MAX_VALUE)
        );
        jDialogBuscarApoderadoTramiteLayout.setVerticalGroup(
            jDialogBuscarApoderadoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPaneApoderadoTramite, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE)
        );

        jDialogBuscarClienteTramite.setTitle("Selección de CLIENTE");
        jDialogBuscarClienteTramite.setAlwaysOnTop(true);
        jDialogBuscarClienteTramite.setMinimumSize(new java.awt.Dimension(1200, 450));
        jDialogBuscarClienteTramite.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        jPanelClienteTramite.setMinimumSize(new java.awt.Dimension(1100, 350));

        jTableBuscarClienteTramite.setModel(this.datosPersonas);
        jTableBuscarClienteTramite.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableBuscarClienteTramiteMouseClicked(evt);
            }
        });
        jScrollPaneBuscarClienteTramite.setViewportView(jTableBuscarClienteTramite);

        jPanelBuscarClienteTramite.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabelTelefonoBuscarClienteTramite.setText("Teléfono:");

        jLabelDireccionBuscarClienteTramite.setText("Dirección:");

        jLabelNombreBuscarClienteTramite.setText("Nombre:");

        jLabelDocumentoBuscarClienteTramite.setText("Número Documento:");

        jLabelEmailBuscarClienteTramite.setText("Email:");

        jLabelTipoDocumentoBuscarClienteTramite.setText("Tipo Documento:");

        jComboBoxTipoDocumentoBuscarClienteTramite.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "", "DNI", "LC", "LE", "Pasaporte", "CUIT" }));

        jButtonBuscarClienteTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBuscarClienteTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarClienteTramite.setText("Buscar");
        jButtonBuscarClienteTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarClienteTramiteActionPerformed(evt);
            }
        });

        jButtonDeshacerBusquedaClienteTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonDeshacerBusquedaClienteTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/flechaatras.png"))); // NOI18N
        jButtonDeshacerBusquedaClienteTramite.setText("Deshacer Búsqueda");
        jButtonDeshacerBusquedaClienteTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeshacerBusquedaClienteTramiteActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarClienteTramiteLayout = new javax.swing.GroupLayout(jPanelBuscarClienteTramite);
        jPanelBuscarClienteTramite.setLayout(jPanelBuscarClienteTramiteLayout);
        jPanelBuscarClienteTramiteLayout.setHorizontalGroup(
            jPanelBuscarClienteTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarClienteTramiteLayout.createSequentialGroup()
                .addGroup(jPanelBuscarClienteTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelBuscarClienteTramiteLayout.createSequentialGroup()
                        .addGap(27, 27, 27)
                        .addComponent(jLabelTipoDocumentoBuscarClienteTramite)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBoxTipoDocumentoBuscarClienteTramite, 0, 149, Short.MAX_VALUE))
                    .addGroup(jPanelBuscarClienteTramiteLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanelBuscarClienteTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelNombreBuscarClienteTramite)
                            .addComponent(jLabelDocumentoBuscarClienteTramite)
                            .addGroup(jPanelBuscarClienteTramiteLayout.createSequentialGroup()
                                .addGap(25, 25, 25)
                                .addComponent(jLabelEmailBuscarClienteTramite))
                            .addComponent(jLabelDireccionBuscarClienteTramite)
                            .addComponent(jLabelTelefonoBuscarClienteTramite))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelBuscarClienteTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldDireccionBuscarClienteTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)
                            .addComponent(jTextFieldNombreBuscarClienteTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)
                            .addComponent(jTextFieldDocumentoBuscarClienteTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)
                            .addComponent(jTextFieldTelefonoBuscarClienteTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)
                            .addComponent(jTextFieldEmailBuscarClienteTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)))
                    .addGroup(jPanelBuscarClienteTramiteLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonBuscarClienteTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 251, Short.MAX_VALUE))
                    .addGroup(jPanelBuscarClienteTramiteLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonDeshacerBusquedaClienteTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 251, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelBuscarClienteTramiteLayout.setVerticalGroup(
            jPanelBuscarClienteTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarClienteTramiteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelBuscarClienteTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTipoDocumentoBuscarClienteTramite)
                    .addComponent(jComboBoxTipoDocumentoBuscarClienteTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarClienteTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelDocumentoBuscarClienteTramite)
                    .addComponent(jTextFieldDocumentoBuscarClienteTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarClienteTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelNombreBuscarClienteTramite)
                    .addComponent(jTextFieldNombreBuscarClienteTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarClienteTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldDireccionBuscarClienteTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelDireccionBuscarClienteTramite))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarClienteTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldTelefonoBuscarClienteTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelTelefonoBuscarClienteTramite))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarClienteTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelEmailBuscarClienteTramite)
                    .addComponent(jTextFieldEmailBuscarClienteTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jButtonBuscarClienteTramite)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButtonDeshacerBusquedaClienteTramite))
        );

        javax.swing.GroupLayout jPanelClienteTramiteLayout = new javax.swing.GroupLayout(jPanelClienteTramite);
        jPanelClienteTramite.setLayout(jPanelClienteTramiteLayout);
        jPanelClienteTramiteLayout.setHorizontalGroup(
            jPanelClienteTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelClienteTramiteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPaneBuscarClienteTramite, javax.swing.GroupLayout.PREFERRED_SIZE, 752, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanelBuscarClienteTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(47, Short.MAX_VALUE))
        );
        jPanelClienteTramiteLayout.setVerticalGroup(
            jPanelClienteTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelClienteTramiteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelClienteTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jScrollPaneBuscarClienteTramite, javax.swing.GroupLayout.Alignment.LEADING, 0, 0, Short.MAX_VALUE)
                    .addComponent(jPanelBuscarClienteTramite, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(95, Short.MAX_VALUE))
        );

        jScrollPaneClienteTramite.setViewportView(jPanelClienteTramite);

        javax.swing.GroupLayout jDialogBuscarClienteTramiteLayout = new javax.swing.GroupLayout(jDialogBuscarClienteTramite.getContentPane());
        jDialogBuscarClienteTramite.getContentPane().setLayout(jDialogBuscarClienteTramiteLayout);
        jDialogBuscarClienteTramiteLayout.setHorizontalGroup(
            jDialogBuscarClienteTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPaneClienteTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 1100, Short.MAX_VALUE)
        );
        jDialogBuscarClienteTramiteLayout.setVerticalGroup(
            jDialogBuscarClienteTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPaneClienteTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 313, Short.MAX_VALUE)
        );

        jDialogAltaCausa.setTitle("Agregar Causa");
        jDialogAltaCausa.setMinimumSize(new java.awt.Dimension(900, 630));
        jDialogAltaCausa.setModal(true);
        jDialogAltaCausa.setResizable(false);

        jLabelTituloAltaCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelTituloAltaCausa.setText("Datos Causa");

        jLabelNumAltaCausa.setText("Número:");

        jLabelFechaInicioAltaCausa.setText("Fecha Inicio:");

        jLabelFechaCierreAltaCausa.setText("Fecha Cierre:");

        jLabelTipoAltaCausa.setText("Tipo:");

        jLabelJuzgadoAltaCausa.setText("Juzgado:");

        jLabelDescAltaCausa.setText("Descripción:");

        jComboBoxTipoAltaCausa.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Civil", "Familia", "Laboral", "Penal", "Otro" }));
        jComboBoxTipoAltaCausa.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jComboBoxTipoAltaCausaMouseClicked(evt);
            }
        });
        jComboBoxTipoAltaCausa.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBoxTipoAltaCausaItemStateChanged(evt);
            }
        });

        jButtonConfirmarAltaCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonConfirmarAltaCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonConfirmarAltaCausa.setText("Confirmar");
        jButtonConfirmarAltaCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConfirmarAltaCausaActionPerformed(evt);
            }
        });

        jButtonCancelarAltaCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelarAltaCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarAltaCausa.setText("Cancelar");
        jButtonCancelarAltaCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarAltaCausaActionPerformed(evt);
            }
        });

        jTextAreaDescripcionAltaCausa.setColumns(20);
        jTextAreaDescripcionAltaCausa.setRows(5);
        jScrollPane7.setViewportView(jTextAreaDescripcionAltaCausa);

        jLabelCaratulaNuevaCausa.setText("Carátula:");

        jLabelAbogadoApoderado.setText("Abogado Apoderado:");

        jLabelAbogadoContraparte.setText("Abogado Contraparte:");

        jLabelCliente.setText("Cliente:");

        jLabelContraparte.setText("Contraparte:");

        jButtonAbogadoApoderado.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonAbogadoApoderado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAbogadoApoderadoActionPerformed(evt);
            }
        });

        jButtonAbogadoContraparte.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonAbogadoContraparte.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAbogadoContraparteActionPerformed(evt);
            }
        });

        jButtonCliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonClienteActionPerformed(evt);
            }
        });

        jButtonContraparte.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonContraparte.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonContraparteActionPerformed(evt);
            }
        });

        jPanelPasosCausa.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Pasos Procesales", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N

        jTablePasosProcesalesAltaCausa.setModel(this.datosPasoProcesal);
        jScrollPane13.setViewportView(jTablePasosProcesalesAltaCausa);

        jButtonAgregarPasosAltaCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAgregarPasosAltaCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/agregar.png"))); // NOI18N
        jButtonAgregarPasosAltaCausa.setText("Agregar Pasos Procesales");
        jButtonAgregarPasosAltaCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAgregarPasosAltaCausaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelPasosCausaLayout = new javax.swing.GroupLayout(jPanelPasosCausa);
        jPanelPasosCausa.setLayout(jPanelPasosCausaLayout);
        jPanelPasosCausaLayout.setHorizontalGroup(
            jPanelPasosCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelPasosCausaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelPasosCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, 384, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonAgregarPasosAltaCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 384, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanelPasosCausaLayout.setVerticalGroup(
            jPanelPasosCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelPasosCausaLayout.createSequentialGroup()
                .addComponent(jScrollPane13, javax.swing.GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonAgregarPasosAltaCausa)
                .addContainerGap())
        );

        javax.swing.GroupLayout jDialogAltaCausaLayout = new javax.swing.GroupLayout(jDialogAltaCausa.getContentPane());
        jDialogAltaCausa.getContentPane().setLayout(jDialogAltaCausaLayout);
        jDialogAltaCausaLayout.setHorizontalGroup(
            jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAltaCausaLayout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogAltaCausaLayout.createSequentialGroup()
                            .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabelAbogadoApoderado)
                                .addComponent(jLabelCliente)
                                .addComponent(jLabelContraparte)
                                .addComponent(jLabelTipoAltaCausa)
                                .addComponent(jLabelJuzgadoAltaCausa)
                                .addComponent(jLabelDescAltaCausa)
                                .addComponent(jLabelAbogadoContraparte))
                            .addGap(30, 30, 30)
                            .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(jDateChooserFechaInicioAltaCausa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldJuzgadoAltaCausa, javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jDialogAltaCausaLayout.createSequentialGroup()
                                    .addComponent(jComboBoxTipoAltaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18)
                                    .addComponent(jTextFieldIngreseTipo))
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jDialogAltaCausaLayout.createSequentialGroup()
                                    .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(jTextFieldContraparte, javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jTextFieldCliente, javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jTextFieldAbogadoContraparte, javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jTextFieldAbogadoApoderado, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jButtonAbogadoApoderado)
                                        .addComponent(jButtonContraparte)
                                        .addComponent(jButtonCliente)
                                        .addComponent(jButtonAbogadoContraparte)))
                                .addComponent(jScrollPane7, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jDateChooserFechaCierreAltaCausa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogAltaCausaLayout.createSequentialGroup()
                            .addComponent(jButtonConfirmarAltaCausa)
                            .addGap(53, 53, 53)
                            .addComponent(jButtonCancelarAltaCausa)))
                    .addGroup(jDialogAltaCausaLayout.createSequentialGroup()
                        .addGap(44, 44, 44)
                        .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelCaratulaNuevaCausa)
                            .addComponent(jLabelNumAltaCausa)
                            .addComponent(jLabelFechaInicioAltaCausa)
                            .addComponent(jLabelFechaCierreAltaCausa))
                        .addGap(30, 30, 30)
                        .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jTextFieldNumAltaCausa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)
                            .addComponent(jTextFieldCaratulaNuevaCausa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)))
                    .addComponent(jLabelTituloAltaCausa))
                .addGap(18, 18, 18)
                .addComponent(jPanelPasosCausa, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jDialogAltaCausaLayout.setVerticalGroup(
            jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAltaCausaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jPanelPasosCausa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jDialogAltaCausaLayout.createSequentialGroup()
                        .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jDialogAltaCausaLayout.createSequentialGroup()
                                .addGap(28, 28, 28)
                                .addComponent(jTextFieldNumAltaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jTextFieldCaratulaNuevaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabelCaratulaNuevaCausa)))
                            .addGroup(jDialogAltaCausaLayout.createSequentialGroup()
                                .addComponent(jLabelTituloAltaCausa)
                                .addGap(18, 18, 18)
                                .addComponent(jLabelNumAltaCausa)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jDateChooserFechaInicioAltaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelFechaInicioAltaCausa))
                        .addGap(11, 11, 11)
                        .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelFechaCierreAltaCausa)
                            .addComponent(jDateChooserFechaCierreAltaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(16, 16, 16)
                        .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jTextFieldAbogadoApoderado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelAbogadoApoderado))
                            .addComponent(jButtonAbogadoApoderado))
                        .addGap(14, 14, 14)
                        .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldAbogadoContraparte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButtonAbogadoContraparte)
                            .addComponent(jLabelAbogadoContraparte))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButtonCliente)
                            .addComponent(jLabelCliente))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jTextFieldContraparte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelContraparte))
                            .addComponent(jButtonContraparte))
                        .addGap(9, 9, 9)
                        .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBoxTipoAltaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldIngreseTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelTipoAltaCausa))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldJuzgadoAltaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelJuzgadoAltaCausa))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelDescAltaCausa)
                            .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(18, 18, 18)
                .addGroup(jDialogAltaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonCancelarAltaCausa)
                    .addComponent(jButtonConfirmarAltaCausa))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogBuscarApoderadoTarea.setTitle("Selección ENCARGADO tarea");
        jDialogBuscarApoderadoTarea.setAlwaysOnTop(true);
        jDialogBuscarApoderadoTarea.setMinimumSize(new java.awt.Dimension(1100, 450));
        jDialogBuscarApoderadoTarea.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        jTableBuscarApoderadoTarea.setModel(this.datosPersonas);
        jTableBuscarApoderadoTarea.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableBuscarApoderadoTareaMouseClicked(evt);
            }
        });
        jScrollPaneBuscarApoderadoTarea.setViewportView(jTableBuscarApoderadoTarea);

        jPanelBuscarApoderadoTarea.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabelTelefonoBuscarApoderadoTarea.setText("Teléfono:");

        jLabelDireccionBuscarApoderadoTarea.setText("Dirección:");

        jLabelNombreBuscarApoderadoTarea.setText("Nombre:");

        jLabelDocumentoBuscarApoderadoTarea.setText("Número Documento:");

        jLabelEmailBuscarApoderadoTarea.setText("Email:");

        jLabelTipoDocumentoBuscarApoderadoTarea.setText("Tipo Documento:");

        jComboBoxTipoDocumentoBuscarApoderadoTarea.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "", "DNI", "LC", "LE", "Pasaporte", "CUIT" }));

        jButtonApoderadoTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonApoderadoTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonApoderadoTarea.setText("Buscar");
        jButtonApoderadoTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonApoderadoTareaActionPerformed(evt);
            }
        });

        jButtonDeshacerBusquedaApoderadoTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonDeshacerBusquedaApoderadoTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/flechaatras.png"))); // NOI18N
        jButtonDeshacerBusquedaApoderadoTarea.setText("Deshacer Búsqueda");
        jButtonDeshacerBusquedaApoderadoTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeshacerBusquedaApoderadoTareaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarApoderadoTareaLayout = new javax.swing.GroupLayout(jPanelBuscarApoderadoTarea);
        jPanelBuscarApoderadoTarea.setLayout(jPanelBuscarApoderadoTareaLayout);
        jPanelBuscarApoderadoTareaLayout.setHorizontalGroup(
            jPanelBuscarApoderadoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarApoderadoTareaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelBuscarApoderadoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonApoderadoTarea, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 251, Short.MAX_VALUE)
                    .addGroup(jPanelBuscarApoderadoTareaLayout.createSequentialGroup()
                        .addGroup(jPanelBuscarApoderadoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelBuscarApoderadoTareaLayout.createSequentialGroup()
                                .addGap(17, 17, 17)
                                .addGroup(jPanelBuscarApoderadoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabelTipoDocumentoBuscarApoderadoTarea)
                                    .addComponent(jLabelEmailBuscarApoderadoTarea)
                                    .addComponent(jLabelDireccionBuscarApoderadoTarea)
                                    .addComponent(jLabelNombreBuscarApoderadoTarea)
                                    .addComponent(jLabelTelefonoBuscarApoderadoTarea)))
                            .addComponent(jLabelDocumentoBuscarApoderadoTarea))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelBuscarApoderadoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jComboBoxTipoDocumentoBuscarApoderadoTarea, 0, 149, Short.MAX_VALUE)
                            .addComponent(jTextFieldNombreBuscarApoderadoTarea, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)
                            .addComponent(jTextFieldDocumentoBuscarApoderadoTarea, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)
                            .addComponent(jTextFieldDireccionBuscarApoderadoTarea, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)
                            .addComponent(jTextFieldTelefonoBuscarApoderadoTarea, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)
                            .addComponent(jTextFieldEmailBuscarApoderadoTarea, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)))
                    .addComponent(jButtonDeshacerBusquedaApoderadoTarea, javax.swing.GroupLayout.DEFAULT_SIZE, 251, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanelBuscarApoderadoTareaLayout.setVerticalGroup(
            jPanelBuscarApoderadoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarApoderadoTareaLayout.createSequentialGroup()
                .addGroup(jPanelBuscarApoderadoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTipoDocumentoBuscarApoderadoTarea)
                    .addComponent(jComboBoxTipoDocumentoBuscarApoderadoTarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarApoderadoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jTextFieldDocumentoBuscarApoderadoTarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelDocumentoBuscarApoderadoTarea))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarApoderadoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNombreBuscarApoderadoTarea)
                    .addComponent(jTextFieldNombreBuscarApoderadoTarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarApoderadoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldDireccionBuscarApoderadoTarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelDireccionBuscarApoderadoTarea))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarApoderadoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTelefonoBuscarApoderadoTarea)
                    .addComponent(jTextFieldTelefonoBuscarApoderadoTarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarApoderadoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldEmailBuscarApoderadoTarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelEmailBuscarApoderadoTarea))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButtonApoderadoTarea)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonDeshacerBusquedaApoderadoTarea)
                .addContainerGap(15, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogBuscarApoderadoTareaLayout = new javax.swing.GroupLayout(jDialogBuscarApoderadoTarea.getContentPane());
        jDialogBuscarApoderadoTarea.getContentPane().setLayout(jDialogBuscarApoderadoTareaLayout);
        jDialogBuscarApoderadoTareaLayout.setHorizontalGroup(
            jDialogBuscarApoderadoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogBuscarApoderadoTareaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPaneBuscarApoderadoTarea, javax.swing.GroupLayout.PREFERRED_SIZE, 752, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addComponent(jPanelBuscarApoderadoTarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(138, Short.MAX_VALUE))
        );
        jDialogBuscarApoderadoTareaLayout.setVerticalGroup(
            jDialogBuscarApoderadoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 300, Short.MAX_VALUE)
            .addGroup(jDialogBuscarApoderadoTareaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogBuscarApoderadoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jScrollPaneBuscarApoderadoTarea, javax.swing.GroupLayout.Alignment.LEADING, 0, 0, Short.MAX_VALUE)
                    .addComponent(jPanelBuscarApoderadoTarea, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(24, Short.MAX_VALUE))
        );

        jDialogEliminarMovimiento2.setTitle("Eliminar Movimiento");
        jDialogEliminarMovimiento2.setMinimumSize(new java.awt.Dimension(370, 140));
        jDialogEliminarMovimiento2.setModal(true);
        jDialogEliminarMovimiento2.setResizable(false);

        jButtonSiEliminarMovimiento2.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonSiEliminarMovimiento2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonSiEliminarMovimiento2.setText("Si");
        jButtonSiEliminarMovimiento2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSiEliminarMovimiento2ActionPerformed(evt);
            }
        });

        jButtonNoEliminarMovimiento2.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonNoEliminarMovimiento2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonNoEliminarMovimiento2.setText("No");
        jButtonNoEliminarMovimiento2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNoEliminarMovimiento2ActionPerformed(evt);
            }
        });

        jLabelMensajeEliminarMovimiento2.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelMensajeEliminarMovimiento2.setText("¿Está seguro que desea eliminar este movimiento?");

        javax.swing.GroupLayout jDialogEliminarMovimiento2Layout = new javax.swing.GroupLayout(jDialogEliminarMovimiento2.getContentPane());
        jDialogEliminarMovimiento2.getContentPane().setLayout(jDialogEliminarMovimiento2Layout);
        jDialogEliminarMovimiento2Layout.setHorizontalGroup(
            jDialogEliminarMovimiento2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGroup(jDialogEliminarMovimiento2Layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jDialogEliminarMovimiento2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelMensajeEliminarMovimiento2)
                    .addGroup(jDialogEliminarMovimiento2Layout.createSequentialGroup()
                        .addGap(54, 54, 54)
                        .addComponent(jButtonSiEliminarMovimiento2)
                        .addGap(61, 61, 61)
                        .addComponent(jButtonNoEliminarMovimiento2)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jDialogEliminarMovimiento2Layout.setVerticalGroup(
            jDialogEliminarMovimiento2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 88, Short.MAX_VALUE)
            .addGap(0, 88, Short.MAX_VALUE)
            .addGap(0, 88, Short.MAX_VALUE)
            .addGap(0, 88, Short.MAX_VALUE)
            .addGroup(jDialogEliminarMovimiento2Layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(jLabelMensajeEliminarMovimiento2)
                .addGap(18, 18, 18)
                .addGroup(jDialogEliminarMovimiento2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonSiEliminarMovimiento2)
                    .addComponent(jButtonNoEliminarMovimiento2))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogModificarMovimiento.setTitle("Modificar Movimiento");
        jDialogModificarMovimiento.setMinimumSize(new java.awt.Dimension(430, 370));
        jDialogModificarMovimiento.setModal(true);
        jDialogModificarMovimiento.setResizable(false);

        modificarrMovFecha.setText("Fecha:");

        modificarrMovDebe.setText("Debe:");

        modificarMovHaber.setText("Haber:");

        jButtonAceptarModificarMov.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAceptarModificarMov.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/guardar.png"))); // NOI18N
        jButtonAceptarModificarMov.setText("Guardar cambios");
        jButtonAceptarModificarMov.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarModificarMovActionPerformed(evt);
            }
        });

        jButtonCancelarModificarMov.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelarModificarMov.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarModificarMov.setText("Cancelar");
        jButtonCancelarModificarMov.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarModificarMovActionPerformed(evt);
            }
        });

        jTextFieldDebeMovimiento3.setText("0");

        jTextFieldHaberMovimiento3.setText("0");

        jLabelDescripcion2.setText("Descrpición:");

        jTextAreaDescripcionMovimiento3.setColumns(20);
        jTextAreaDescripcionMovimiento3.setRows(5);
        jScrollPaneModificarMov.setViewportView(jTextAreaDescripcionMovimiento3);

        jButtonEliminarMovimiento.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarMovimiento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/eliminar.png"))); // NOI18N
        jButtonEliminarMovimiento.setText("Eliminar");
        jButtonEliminarMovimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarMovimientoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogModificarMovimientoLayout = new javax.swing.GroupLayout(jDialogModificarMovimiento.getContentPane());
        jDialogModificarMovimiento.getContentPane().setLayout(jDialogModificarMovimientoLayout);
        jDialogModificarMovimientoLayout.setHorizontalGroup(
            jDialogModificarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogModificarMovimientoLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(jDialogModificarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogModificarMovimientoLayout.createSequentialGroup()
                        .addComponent(jButtonEliminarMovimiento)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jButtonAceptarModificarMov)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jButtonCancelarModificarMov))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogModificarMovimientoLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(jDialogModificarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(modificarrMovFecha)
                            .addComponent(modificarrMovDebe)
                            .addComponent(modificarMovHaber)
                            .addComponent(jLabelDescripcion2))
                        .addGap(18, 18, 18)
                        .addGroup(jDialogModificarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jDateChooserFechaMovimiento3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jTextFieldDebeMovimiento3)
                            .addComponent(jTextFieldHaberMovimiento3)
                            .addComponent(jScrollPaneModificarMov, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(52, 52, 52)))
                .addContainerGap(22, Short.MAX_VALUE))
        );
        jDialogModificarMovimientoLayout.setVerticalGroup(
            jDialogModificarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogModificarMovimientoLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(jDialogModificarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(modificarrMovFecha)
                    .addComponent(jDateChooserFechaMovimiento3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogModificarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldDebeMovimiento3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(modificarrMovDebe))
                .addGap(12, 12, 12)
                .addGroup(jDialogModificarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldHaberMovimiento3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(modificarMovHaber))
                .addGap(18, 18, 18)
                .addGroup(jDialogModificarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelDescripcion2)
                    .addComponent(jScrollPaneModificarMov, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)
                .addGroup(jDialogModificarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonEliminarMovimiento)
                    .addComponent(jButtonAceptarModificarMov)
                    .addComponent(jButtonCancelarModificarMov))
                .addGap(28, 28, 28))
        );

        jDialogAlertaAgenda.setTitle("ALERTA próximas tareas");
        jDialogAlertaAgenda.setAlwaysOnTop(true);
        jDialogAlertaAgenda.setMinimumSize(new java.awt.Dimension(800, 600));
        jDialogAlertaAgenda.setResizable(false);

        jTableTablaAlertaTareas.setModel(this.datosAgendaAlerta);
        jTableTablaAlertaTareas.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableTablaAlertaTareasMouseClicked(evt);
            }
        });
        jScrollPaneAlertaTareas.setViewportView(jTableTablaAlertaTareas);

        jButtonAceptarAlertaTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAceptarAlertaTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAceptarAlertaTarea.setText("Aceptar");
        jButtonAceptarAlertaTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarAlertaTareaActionPerformed(evt);
            }
        });

        jLabelAlertaTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelAlertaTarea.setText("Listado próximas tareas:");

        jTableTablaAlertaPasos.setModel(this.datosPasosAgendaAlerta);
        jTableTablaAlertaPasos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableTablaAlertaPasosMouseClicked(evt);
            }
        });
        jScrollPane12.setViewportView(jTableTablaAlertaPasos);

        jLabelListadoProximosPasosAgenda.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelListadoProximosPasosAgenda.setText("Listado próximos Pasos:");

        javax.swing.GroupLayout jDialogAlertaAgendaLayout = new javax.swing.GroupLayout(jDialogAlertaAgenda.getContentPane());
        jDialogAlertaAgenda.getContentPane().setLayout(jDialogAlertaAgendaLayout);
        jDialogAlertaAgendaLayout.setHorizontalGroup(
            jDialogAlertaAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAlertaAgendaLayout.createSequentialGroup()
                .addGap(287, 287, 287)
                .addComponent(jButtonAceptarAlertaTarea)
                .addContainerGap(303, Short.MAX_VALUE))
            .addGroup(jDialogAlertaAgendaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogAlertaAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogAlertaAgendaLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelAlertaTarea)
                        .addContainerGap(529, Short.MAX_VALUE))
                    .addGroup(jDialogAlertaAgendaLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelListadoProximosPasosAgenda)
                        .addContainerGap(531, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogAlertaAgendaLayout.createSequentialGroup()
                        .addGroup(jDialogAlertaAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jScrollPane12, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 669, Short.MAX_VALUE)
                            .addComponent(jScrollPaneAlertaTareas, javax.swing.GroupLayout.DEFAULT_SIZE, 669, Short.MAX_VALUE))
                        .addContainerGap())))
        );
        jDialogAlertaAgendaLayout.setVerticalGroup(
            jDialogAlertaAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogAlertaAgendaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelAlertaTarea)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPaneAlertaTareas, javax.swing.GroupLayout.DEFAULT_SIZE, 209, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabelListadoProximosPasosAgenda)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonAceptarAlertaTarea)
                .addGap(11, 11, 11))
        );

        jDialogBuscarApoderadoCausa.setTitle("Selección de APODERADO");
        jDialogBuscarApoderadoCausa.setAlwaysOnTop(true);
        jDialogBuscarApoderadoCausa.setMinimumSize(new java.awt.Dimension(1100, 450));
        jDialogBuscarApoderadoCausa.setModal(true);

        jPanelApoderadoCausa.setPreferredSize(new java.awt.Dimension(1019, 400));

        jTableBuscarApoderadoCausa.setModel(this.datosPersonas);
        jTableBuscarApoderadoCausa.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableBuscarApoderadoCausaMouseClicked(evt);
            }
        });
        jScrollPaneBuscarApoderadoCausa.setViewportView(jTableBuscarApoderadoCausa);

        jPanelBuscarApoderadoCausa.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabelTelefonoBuscarApoderadoCausa.setText("Teléfono:");

        jLabelDireccionBuscarApoderadoCausa.setText("Dirección:");

        jLabelNombreBuscarApoderadoCausa.setText("Nombre:");

        jLabelDocumentoBuscarApoderadoCausa.setText("Número Documento:");

        jLabelEmailBuscarApoderadoCausa.setText("Email:");

        jLabelTipoDocumentoBuscarApoderadoCausa1.setText("Tipo Documento:");

        jComboBoxTipoDocumentoBuscarApoderadoCausa.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "", "DNI", "LC", "LE", "Pasaporte", "CUIT" }));

        jButtonBuscarApoderadoCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBuscarApoderadoCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarApoderadoCausa.setText("Buscar");
        jButtonBuscarApoderadoCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarApoderadoCausaActionPerformed(evt);
            }
        });

        jButtonDeshacerBusquedaApoderadoCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonDeshacerBusquedaApoderadoCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/flechaatras.png"))); // NOI18N
        jButtonDeshacerBusquedaApoderadoCausa.setText("Deshacer Búsqueda");
        jButtonDeshacerBusquedaApoderadoCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeshacerBusquedaApoderadoCausaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarApoderadoCausaLayout = new javax.swing.GroupLayout(jPanelBuscarApoderadoCausa);
        jPanelBuscarApoderadoCausa.setLayout(jPanelBuscarApoderadoCausaLayout);
        jPanelBuscarApoderadoCausaLayout.setHorizontalGroup(
            jPanelBuscarApoderadoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarApoderadoCausaLayout.createSequentialGroup()
                .addGroup(jPanelBuscarApoderadoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelBuscarApoderadoCausaLayout.createSequentialGroup()
                        .addGap(27, 27, 27)
                        .addComponent(jLabelTipoDocumentoBuscarApoderadoCausa1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBoxTipoDocumentoBuscarApoderadoCausa, 0, 0, Short.MAX_VALUE))
                    .addGroup(jPanelBuscarApoderadoCausaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanelBuscarApoderadoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelNombreBuscarApoderadoCausa)
                            .addComponent(jLabelDocumentoBuscarApoderadoCausa)
                            .addComponent(jLabelDireccionBuscarApoderadoCausa)
                            .addComponent(jLabelTelefonoBuscarApoderadoCausa)
                            .addComponent(jLabelEmailBuscarApoderadoCausa))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelBuscarApoderadoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldEmailBuscarApoderadoCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                            .addComponent(jTextFieldTelefonoBuscarApoderadoCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                            .addComponent(jTextFieldDireccionBuscarApoderadoCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                            .addComponent(jTextFieldNombreBuscarApoderadoCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                            .addComponent(jTextFieldDocumentoBuscarApoderadoCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)))
                    .addGroup(jPanelBuscarApoderadoCausaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonBuscarApoderadoCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE))
                    .addGroup(jPanelBuscarApoderadoCausaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonDeshacerBusquedaApoderadoCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelBuscarApoderadoCausaLayout.setVerticalGroup(
            jPanelBuscarApoderadoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarApoderadoCausaLayout.createSequentialGroup()
                .addGroup(jPanelBuscarApoderadoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelTipoDocumentoBuscarApoderadoCausa1)
                    .addComponent(jComboBoxTipoDocumentoBuscarApoderadoCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelBuscarApoderadoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelDocumentoBuscarApoderadoCausa)
                    .addComponent(jTextFieldDocumentoBuscarApoderadoCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarApoderadoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNombreBuscarApoderadoCausa)
                    .addComponent(jTextFieldNombreBuscarApoderadoCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarApoderadoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelDireccionBuscarApoderadoCausa)
                    .addComponent(jTextFieldDireccionBuscarApoderadoCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarApoderadoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTelefonoBuscarApoderadoCausa)
                    .addComponent(jTextFieldTelefonoBuscarApoderadoCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarApoderadoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelEmailBuscarApoderadoCausa)
                    .addComponent(jTextFieldEmailBuscarApoderadoCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jButtonBuscarApoderadoCausa)
                .addGap(18, 18, 18)
                .addComponent(jButtonDeshacerBusquedaApoderadoCausa)
                .addContainerGap(23, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanelApoderadoCausaLayout = new javax.swing.GroupLayout(jPanelApoderadoCausa);
        jPanelApoderadoCausa.setLayout(jPanelApoderadoCausaLayout);
        jPanelApoderadoCausaLayout.setHorizontalGroup(
            jPanelApoderadoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelApoderadoCausaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPaneBuscarApoderadoCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 745, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelBuscarApoderadoCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanelApoderadoCausaLayout.setVerticalGroup(
            jPanelApoderadoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelApoderadoCausaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelApoderadoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jPanelBuscarApoderadoCausa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPaneBuscarApoderadoCausa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE))
                .addContainerGap(95, Short.MAX_VALUE))
        );

        jScrollPaneApoderadoCausa.setViewportView(jPanelApoderadoCausa);

        javax.swing.GroupLayout jDialogBuscarApoderadoCausaLayout = new javax.swing.GroupLayout(jDialogBuscarApoderadoCausa.getContentPane());
        jDialogBuscarApoderadoCausa.getContentPane().setLayout(jDialogBuscarApoderadoCausaLayout);
        jDialogBuscarApoderadoCausaLayout.setHorizontalGroup(
            jDialogBuscarApoderadoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPaneApoderadoCausa, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 1001, Short.MAX_VALUE)
        );
        jDialogBuscarApoderadoCausaLayout.setVerticalGroup(
            jDialogBuscarApoderadoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPaneApoderadoCausa, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE)
        );

        jDialogBuscarClienteCausa.setTitle("Selección de CLIENTE");
        jDialogBuscarClienteCausa.setAlwaysOnTop(true);
        jDialogBuscarClienteCausa.setMinimumSize(new java.awt.Dimension(1200, 450));
        jDialogBuscarClienteCausa.setModal(true);

        jPanelClienteTramiteCausa.setMinimumSize(new java.awt.Dimension(1100, 350));

        jTableBuscarClienteCausa.setModel(this.datosPersonas);
        jTableBuscarClienteCausa.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableBuscarClienteCausaMouseClicked(evt);
            }
        });
        jScrollPaneBuscarClienteCausa.setViewportView(jTableBuscarClienteCausa);

        jPanelBuscarClienteCausa.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabelTelefonoBuscarClienteCausa.setText("Teléfono:");

        jLabelDireccionBuscarClienteCausa.setText("Dirección:");

        jLabelNombreBuscarClienteCausa.setText("Nombre:");

        jLabelDocumentoBuscarClienteCausa.setText("Número Documento:");

        jLabelEmailBuscarClienteCausa.setText("Email:");

        jLabelTipoDocumentoBuscarClienteCausa.setText("Tipo Documento:");

        jComboBoxTipoDocumentoBuscarClienteCausa.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "", "DNI", "LC", "LE", "Pasaporte", "CUIT" }));

        jButtonBuscarClienteCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBuscarClienteCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarClienteCausa.setText("Buscar");
        jButtonBuscarClienteCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarClienteCausaActionPerformed(evt);
            }
        });

        jButtonDeshacerBusquedaClienteCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonDeshacerBusquedaClienteCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/flechaatras.png"))); // NOI18N
        jButtonDeshacerBusquedaClienteCausa.setText("Deshacer Búsqueda");
        jButtonDeshacerBusquedaClienteCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeshacerBusquedaClienteCausaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarClienteCausaLayout = new javax.swing.GroupLayout(jPanelBuscarClienteCausa);
        jPanelBuscarClienteCausa.setLayout(jPanelBuscarClienteCausaLayout);
        jPanelBuscarClienteCausaLayout.setHorizontalGroup(
            jPanelBuscarClienteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarClienteCausaLayout.createSequentialGroup()
                .addGroup(jPanelBuscarClienteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelBuscarClienteCausaLayout.createSequentialGroup()
                        .addGap(27, 27, 27)
                        .addComponent(jLabelTipoDocumentoBuscarClienteCausa)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBoxTipoDocumentoBuscarClienteCausa, 0, 149, Short.MAX_VALUE))
                    .addGroup(jPanelBuscarClienteCausaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanelBuscarClienteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelNombreBuscarClienteCausa)
                            .addComponent(jLabelDocumentoBuscarClienteCausa)
                            .addGroup(jPanelBuscarClienteCausaLayout.createSequentialGroup()
                                .addGap(25, 25, 25)
                                .addComponent(jLabelEmailBuscarClienteCausa))
                            .addComponent(jLabelDireccionBuscarClienteCausa)
                            .addComponent(jLabelTelefonoBuscarClienteCausa))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelBuscarClienteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldDireccionBuscarClienteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)
                            .addComponent(jTextFieldNombreBuscarClienteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)
                            .addComponent(jTextFieldDocumentoBuscarClienteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)
                            .addComponent(jTextFieldTelefonoBuscarClienteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)
                            .addComponent(jTextFieldEmailBuscarClienteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)))
                    .addGroup(jPanelBuscarClienteCausaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonBuscarClienteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 251, Short.MAX_VALUE))
                    .addGroup(jPanelBuscarClienteCausaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonDeshacerBusquedaClienteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 251, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelBuscarClienteCausaLayout.setVerticalGroup(
            jPanelBuscarClienteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarClienteCausaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelBuscarClienteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTipoDocumentoBuscarClienteCausa)
                    .addComponent(jComboBoxTipoDocumentoBuscarClienteCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarClienteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelDocumentoBuscarClienteCausa)
                    .addComponent(jTextFieldDocumentoBuscarClienteCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarClienteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelNombreBuscarClienteCausa)
                    .addComponent(jTextFieldNombreBuscarClienteCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarClienteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldDireccionBuscarClienteCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelDireccionBuscarClienteCausa))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarClienteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldTelefonoBuscarClienteCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelTelefonoBuscarClienteCausa))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarClienteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelEmailBuscarClienteCausa)
                    .addComponent(jTextFieldEmailBuscarClienteCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jButtonBuscarClienteCausa)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButtonDeshacerBusquedaClienteCausa))
        );

        javax.swing.GroupLayout jPanelClienteTramiteCausaLayout = new javax.swing.GroupLayout(jPanelClienteTramiteCausa);
        jPanelClienteTramiteCausa.setLayout(jPanelClienteTramiteCausaLayout);
        jPanelClienteTramiteCausaLayout.setHorizontalGroup(
            jPanelClienteTramiteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelClienteTramiteCausaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPaneBuscarClienteCausa, javax.swing.GroupLayout.PREFERRED_SIZE, 752, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanelBuscarClienteCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(47, Short.MAX_VALUE))
        );
        jPanelClienteTramiteCausaLayout.setVerticalGroup(
            jPanelClienteTramiteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelClienteTramiteCausaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelClienteTramiteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jScrollPaneBuscarClienteCausa, javax.swing.GroupLayout.Alignment.LEADING, 0, 0, Short.MAX_VALUE)
                    .addComponent(jPanelBuscarClienteCausa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(95, Short.MAX_VALUE))
        );

        jScrollPaneClienteCausa.setViewportView(jPanelClienteTramiteCausa);

        javax.swing.GroupLayout jDialogBuscarClienteCausaLayout = new javax.swing.GroupLayout(jDialogBuscarClienteCausa.getContentPane());
        jDialogBuscarClienteCausa.getContentPane().setLayout(jDialogBuscarClienteCausaLayout);
        jDialogBuscarClienteCausaLayout.setHorizontalGroup(
            jDialogBuscarClienteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPaneClienteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 1100, Short.MAX_VALUE)
        );
        jDialogBuscarClienteCausaLayout.setVerticalGroup(
            jDialogBuscarClienteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPaneClienteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 313, Short.MAX_VALUE)
        );

        jDialogBuscarContraparteCausa.setTitle("Selección de APODERADO");
        jDialogBuscarContraparteCausa.setAlwaysOnTop(true);
        jDialogBuscarContraparteCausa.setMinimumSize(new java.awt.Dimension(1100, 450));
        jDialogBuscarContraparteCausa.setModal(true);

        jPanelContraparteCausa.setPreferredSize(new java.awt.Dimension(1019, 400));

        jTableBuscarContraparteCausa.setModel(this.datosPersonas);
        jTableBuscarContraparteCausa.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableBuscarContraparteCausaMouseClicked(evt);
            }
        });
        jScrollPaneBuscarContraparteCausa.setViewportView(jTableBuscarContraparteCausa);

        jPanelBuscarContraparteCausa.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabelTelefonoBuscarContraparteCausa.setText("Teléfono:");

        jLabelDireccionBuscarContraparteCausa.setText("Dirección:");

        jLabelNombreBuscarContraparteCausa.setText("Nombre:");

        jLabelDocumentoBuscarApoderadoCausa1.setText("Número Documento:");

        jLabelEmailBuscarApoderadoCausa1.setText("Email:");

        jLabelTipoDocumentoBuscarApoderadoCausa2.setText("Tipo Documento:");

        jComboBoxTipoDocumentoBuscarContraparteCausa.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "", "DNI", "LC", "LE", "Pasaporte", "CUIT" }));

        jButtonBuscarContraparteCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBuscarContraparteCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarContraparteCausa.setText("Buscar");
        jButtonBuscarContraparteCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarContraparteCausaActionPerformed(evt);
            }
        });

        jButtonDeshacerBusquedaContraparteCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonDeshacerBusquedaContraparteCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/flechaatras.png"))); // NOI18N
        jButtonDeshacerBusquedaContraparteCausa.setText("Deshacer Búsqueda");
        jButtonDeshacerBusquedaContraparteCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeshacerBusquedaContraparteCausaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarContraparteCausaLayout = new javax.swing.GroupLayout(jPanelBuscarContraparteCausa);
        jPanelBuscarContraparteCausa.setLayout(jPanelBuscarContraparteCausaLayout);
        jPanelBuscarContraparteCausaLayout.setHorizontalGroup(
            jPanelBuscarContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarContraparteCausaLayout.createSequentialGroup()
                .addGroup(jPanelBuscarContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelBuscarContraparteCausaLayout.createSequentialGroup()
                        .addGap(27, 27, 27)
                        .addComponent(jLabelTipoDocumentoBuscarApoderadoCausa2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBoxTipoDocumentoBuscarContraparteCausa, 0, 0, Short.MAX_VALUE))
                    .addGroup(jPanelBuscarContraparteCausaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanelBuscarContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelNombreBuscarContraparteCausa)
                            .addComponent(jLabelDocumentoBuscarApoderadoCausa1)
                            .addComponent(jLabelDireccionBuscarContraparteCausa)
                            .addComponent(jLabelTelefonoBuscarContraparteCausa)
                            .addComponent(jLabelEmailBuscarApoderadoCausa1))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelBuscarContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldEmailBuscarContraparteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                            .addComponent(jTextFieldTelefonoBuscarContraparteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                            .addComponent(jTextFieldDireccionBuscarContraparteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                            .addComponent(jTextFieldNombreBuscarContraparteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                            .addComponent(jTextFieldDocumentoBuscarContraparteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)))
                    .addGroup(jPanelBuscarContraparteCausaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonBuscarContraparteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE))
                    .addGroup(jPanelBuscarContraparteCausaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonDeshacerBusquedaContraparteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelBuscarContraparteCausaLayout.setVerticalGroup(
            jPanelBuscarContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarContraparteCausaLayout.createSequentialGroup()
                .addGroup(jPanelBuscarContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelTipoDocumentoBuscarApoderadoCausa2)
                    .addComponent(jComboBoxTipoDocumentoBuscarContraparteCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelBuscarContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelDocumentoBuscarApoderadoCausa1)
                    .addComponent(jTextFieldDocumentoBuscarContraparteCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNombreBuscarContraparteCausa)
                    .addComponent(jTextFieldNombreBuscarContraparteCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelDireccionBuscarContraparteCausa)
                    .addComponent(jTextFieldDireccionBuscarContraparteCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTelefonoBuscarContraparteCausa)
                    .addComponent(jTextFieldTelefonoBuscarContraparteCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelEmailBuscarApoderadoCausa1)
                    .addComponent(jTextFieldEmailBuscarContraparteCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jButtonBuscarContraparteCausa)
                .addGap(18, 18, 18)
                .addComponent(jButtonDeshacerBusquedaContraparteCausa)
                .addContainerGap(23, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanelContraparteCausaLayout = new javax.swing.GroupLayout(jPanelContraparteCausa);
        jPanelContraparteCausa.setLayout(jPanelContraparteCausaLayout);
        jPanelContraparteCausaLayout.setHorizontalGroup(
            jPanelContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelContraparteCausaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPaneBuscarContraparteCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 745, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelBuscarContraparteCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanelContraparteCausaLayout.setVerticalGroup(
            jPanelContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelContraparteCausaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jPanelBuscarContraparteCausa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPaneBuscarContraparteCausa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE))
                .addContainerGap(95, Short.MAX_VALUE))
        );

        jScrollPaneContraparteCausa.setViewportView(jPanelContraparteCausa);

        javax.swing.GroupLayout jDialogBuscarContraparteCausaLayout = new javax.swing.GroupLayout(jDialogBuscarContraparteCausa.getContentPane());
        jDialogBuscarContraparteCausa.getContentPane().setLayout(jDialogBuscarContraparteCausaLayout);
        jDialogBuscarContraparteCausaLayout.setHorizontalGroup(
            jDialogBuscarContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPaneContraparteCausa, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 1001, Short.MAX_VALUE)
        );
        jDialogBuscarContraparteCausaLayout.setVerticalGroup(
            jDialogBuscarContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPaneContraparteCausa, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE)
        );

        jDialogBuscarAbogadoContraparteCausa.setTitle("Selección de APODERADO");
        jDialogBuscarAbogadoContraparteCausa.setAlwaysOnTop(true);
        jDialogBuscarAbogadoContraparteCausa.setMinimumSize(new java.awt.Dimension(1100, 450));
        jDialogBuscarAbogadoContraparteCausa.setModal(true);

        jPanelContraparteCausa1.setPreferredSize(new java.awt.Dimension(1019, 400));

        jTableBuscarAbogadoContraparteCausa.setModel(this.datosPersonas);
        jTableBuscarAbogadoContraparteCausa.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableBuscarAbogadoContraparteCausaMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jTableBuscarAbogadoContraparteCausaMouseEntered(evt);
            }
        });
        jScrollPaneBuscarContraparteCausa1.setViewportView(jTableBuscarAbogadoContraparteCausa);

        jPanelBuscarContraparteCausa1.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabelTelefonoBuscarContraparteCausa1.setText("Teléfono:");

        jLabelDireccionBuscarContraparteCausa1.setText("Dirección:");

        jLabelNombreBuscarContraparteCausa1.setText("Nombre:");

        jLabelDocumentoBuscarApoderadoCausa2.setText("Número Documento:");

        jLabelEmailBuscarApoderadoCausa2.setText("Email:");

        jLabelTipoDocumentoBuscarApoderadoCausa3.setText("Tipo Documento:");

        jComboBoxTipoDocumentoBuscarContraparteCausa1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "", "DNI", "LC", "LE", "Pasaporte", "CUIT" }));

        jButtonBuscarContraparteCausa1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBuscarContraparteCausa1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarContraparteCausa1.setText("Buscar");
        jButtonBuscarContraparteCausa1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarContraparteCausa1ActionPerformed(evt);
            }
        });

        jButtonDeshacerBusquedaContraparteCausa1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonDeshacerBusquedaContraparteCausa1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/flechaatras.png"))); // NOI18N
        jButtonDeshacerBusquedaContraparteCausa1.setText("Deshacer Búsqueda");
        jButtonDeshacerBusquedaContraparteCausa1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeshacerBusquedaContraparteCausa1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarContraparteCausa1Layout = new javax.swing.GroupLayout(jPanelBuscarContraparteCausa1);
        jPanelBuscarContraparteCausa1.setLayout(jPanelBuscarContraparteCausa1Layout);
        jPanelBuscarContraparteCausa1Layout.setHorizontalGroup(
            jPanelBuscarContraparteCausa1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarContraparteCausa1Layout.createSequentialGroup()
                .addGroup(jPanelBuscarContraparteCausa1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelBuscarContraparteCausa1Layout.createSequentialGroup()
                        .addGap(27, 27, 27)
                        .addComponent(jLabelTipoDocumentoBuscarApoderadoCausa3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBoxTipoDocumentoBuscarContraparteCausa1, 0, 0, Short.MAX_VALUE))
                    .addGroup(jPanelBuscarContraparteCausa1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanelBuscarContraparteCausa1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelNombreBuscarContraparteCausa1)
                            .addComponent(jLabelDocumentoBuscarApoderadoCausa2)
                            .addComponent(jLabelDireccionBuscarContraparteCausa1)
                            .addComponent(jLabelTelefonoBuscarContraparteCausa1)
                            .addComponent(jLabelEmailBuscarApoderadoCausa2))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelBuscarContraparteCausa1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldEmailBuscarContraparteCausa1, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                            .addComponent(jTextFieldTelefonoBuscarContraparteCausa1, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                            .addComponent(jTextFieldDireccionBuscarContraparteCausa1, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                            .addComponent(jTextFieldNombreBuscarContraparteCausa1, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                            .addComponent(jTextFieldDocumentoBuscarContraparteCausa1, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)))
                    .addGroup(jPanelBuscarContraparteCausa1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonBuscarContraparteCausa1, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE))
                    .addGroup(jPanelBuscarContraparteCausa1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonDeshacerBusquedaContraparteCausa1, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelBuscarContraparteCausa1Layout.setVerticalGroup(
            jPanelBuscarContraparteCausa1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarContraparteCausa1Layout.createSequentialGroup()
                .addGroup(jPanelBuscarContraparteCausa1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelTipoDocumentoBuscarApoderadoCausa3)
                    .addComponent(jComboBoxTipoDocumentoBuscarContraparteCausa1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelBuscarContraparteCausa1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelDocumentoBuscarApoderadoCausa2)
                    .addComponent(jTextFieldDocumentoBuscarContraparteCausa1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarContraparteCausa1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNombreBuscarContraparteCausa1)
                    .addComponent(jTextFieldNombreBuscarContraparteCausa1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarContraparteCausa1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelDireccionBuscarContraparteCausa1)
                    .addComponent(jTextFieldDireccionBuscarContraparteCausa1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarContraparteCausa1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTelefonoBuscarContraparteCausa1)
                    .addComponent(jTextFieldTelefonoBuscarContraparteCausa1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarContraparteCausa1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelEmailBuscarApoderadoCausa2)
                    .addComponent(jTextFieldEmailBuscarContraparteCausa1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jButtonBuscarContraparteCausa1)
                .addGap(18, 18, 18)
                .addComponent(jButtonDeshacerBusquedaContraparteCausa1)
                .addContainerGap(23, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanelContraparteCausa1Layout = new javax.swing.GroupLayout(jPanelContraparteCausa1);
        jPanelContraparteCausa1.setLayout(jPanelContraparteCausa1Layout);
        jPanelContraparteCausa1Layout.setHorizontalGroup(
            jPanelContraparteCausa1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelContraparteCausa1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPaneBuscarContraparteCausa1, javax.swing.GroupLayout.DEFAULT_SIZE, 745, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelBuscarContraparteCausa1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanelContraparteCausa1Layout.setVerticalGroup(
            jPanelContraparteCausa1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelContraparteCausa1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelContraparteCausa1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jPanelBuscarContraparteCausa1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPaneBuscarContraparteCausa1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE))
                .addContainerGap(95, Short.MAX_VALUE))
        );

        jScrollPaneContraparteCausa1.setViewportView(jPanelContraparteCausa1);

        javax.swing.GroupLayout jDialogBuscarAbogadoContraparteCausaLayout = new javax.swing.GroupLayout(jDialogBuscarAbogadoContraparteCausa.getContentPane());
        jDialogBuscarAbogadoContraparteCausa.getContentPane().setLayout(jDialogBuscarAbogadoContraparteCausaLayout);
        jDialogBuscarAbogadoContraparteCausaLayout.setHorizontalGroup(
            jDialogBuscarAbogadoContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPaneContraparteCausa1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 1001, Short.MAX_VALUE)
        );
        jDialogBuscarAbogadoContraparteCausaLayout.setVerticalGroup(
            jDialogBuscarAbogadoContraparteCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPaneContraparteCausa1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE)
        );

        jDialogConsultaCausa.setTitle("Detalles Causa");
        jDialogConsultaCausa.setMinimumSize(new java.awt.Dimension(1000, 630));
        jDialogConsultaCausa.setModal(true);
        jDialogConsultaCausa.setResizable(false);

        jLabelTituloConsultaCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelTituloConsultaCausa.setText("Datos Causa");

        jLabelNumConsultaCausa.setText("Número:");

        jLabelFechaInicioConsultaCausa.setText("Fecha Inicio:");

        jLabelFechaCierreConsultaCausa.setText("Fecha Cierre:");

        jLabelTipoConsultaCausa.setText("Tipo:");

        jLabelJuzgadoConsultaCausa.setText("Juzgado:");

        jLabelDescConsultaCausa.setText("Descripción:");

        jTextFieldNumConsultaCausa.setEnabled(false);

        jDateChooserFechaInicioConsultaCausa.setEnabled(false);
        jDateChooserFechaInicioConsultaCausa.setFocusable(false);

        jDateChooserFechaCierreConsultaCausa.setEnabled(false);

        jComboBoxTipoConsultaCausa.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Civil", "Familia", "Laboral", "Penal", "Otro" }));
        jComboBoxTipoConsultaCausa.setEnabled(false);
        jComboBoxTipoConsultaCausa.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBoxTipoConsultaCausaItemStateChanged(evt);
            }
        });

        jButtonConfirmarConsultaCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonConfirmarConsultaCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/modificar.png"))); // NOI18N
        jButtonConfirmarConsultaCausa.setText("Modificar Causa");
        jButtonConfirmarConsultaCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConfirmarConsultaCausaActionPerformed(evt);
            }
        });

        jButtonCancelarConsultaCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelarConsultaCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarConsultaCausa.setText("Salir");
        jButtonCancelarConsultaCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarConsultaCausaActionPerformed(evt);
            }
        });

        jTextAreaDescripcionConsultaCausa.setColumns(20);
        jTextAreaDescripcionConsultaCausa.setRows(5);
        jTextAreaDescripcionConsultaCausa.setEnabled(false);
        jScrollPaneConsultaCausaDescripcion.setViewportView(jTextAreaDescripcionConsultaCausa);

        jLabelCaratulaConsultaCausa.setText("Carátula:");

        jTextFieldCaratulaConsultaCausa.setEnabled(false);

        jLabelAbogadoApoderadoConsultaCausa.setText("Abogado Apoderado:");

        jLabelAbogadoContraparte1.setText("Abogado Contraparte:");

        jLabelCliente1.setText("Cliente:");

        jLabelContraparte1.setText("Contraparte:");

        jTextFieldAbogadoApoderadoConsultaCausa.setEnabled(false);

        jTextFieldAbogadoContraparteConsultaCausa.setEnabled(false);

        jTextFieldClienteConsultaCausa.setEnabled(false);

        jTextFieldContraparteConsultaCausa.setEnabled(false);

        jButtonAbogadoApoderadoConsultaCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonAbogadoApoderadoConsultaCausa.setEnabled(false);
        jButtonAbogadoApoderadoConsultaCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAbogadoApoderadoConsultaCausaActionPerformed(evt);
            }
        });

        jButtonAbogadoContraparteConsultaCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonAbogadoContraparteConsultaCausa.setEnabled(false);
        jButtonAbogadoContraparteConsultaCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAbogadoContraparteConsultaCausaActionPerformed(evt);
            }
        });

        jButtonClienteConsultaCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonClienteConsultaCausa.setEnabled(false);
        jButtonClienteConsultaCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonClienteConsultaCausaActionPerformed(evt);
            }
        });

        jButtonContraparteConsultaCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonContraparteConsultaCausa.setEnabled(false);
        jButtonContraparteConsultaCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonContraparteConsultaCausaActionPerformed(evt);
            }
        });

        jButtonBajaCausas.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBajaCausas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/eliminar.png"))); // NOI18N
        jButtonBajaCausas.setText("EliminarCausa");
        jButtonBajaCausas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBajaCausasActionPerformed(evt);
            }
        });

        jPanelAgregarPasoProcesalConsultaCausa.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Pasos Procesales", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N

        jButtonConsultaCausaAgregarPaso.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonConsultaCausaAgregarPaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/agregar.png"))); // NOI18N
        jButtonConsultaCausaAgregarPaso.setText("Agregar Paso Procesal");
        jButtonConsultaCausaAgregarPaso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultaCausaAgregarPasoActionPerformed(evt);
            }
        });

        jTableConsultaCausaPasos.setModel(this.datosPasoProcesal);
        jTableConsultaCausaPasos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableConsultaCausaPasosMouseClicked(evt);
            }
        });
        jScrollPaneConsultaCausaPasos.setViewportView(jTableConsultaCausaPasos);

        javax.swing.GroupLayout jPanelAgregarPasoProcesalConsultaCausaLayout = new javax.swing.GroupLayout(jPanelAgregarPasoProcesalConsultaCausa);
        jPanelAgregarPasoProcesalConsultaCausa.setLayout(jPanelAgregarPasoProcesalConsultaCausaLayout);
        jPanelAgregarPasoProcesalConsultaCausaLayout.setHorizontalGroup(
            jPanelAgregarPasoProcesalConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAgregarPasoProcesalConsultaCausaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelAgregarPasoProcesalConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jButtonConsultaCausaAgregarPaso, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPaneConsultaCausaPasos, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 413, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelAgregarPasoProcesalConsultaCausaLayout.setVerticalGroup(
            jPanelAgregarPasoProcesalConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelAgregarPasoProcesalConsultaCausaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPaneConsultaCausaPasos, javax.swing.GroupLayout.DEFAULT_SIZE, 367, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonConsultaCausaAgregarPaso)
                .addContainerGap())
        );

        jButtonConsultaCausaAgregarPaso1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonConsultaCausaAgregarPaso1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/agregar.png"))); // NOI18N
        jButtonConsultaCausaAgregarPaso1.setText("Agregar Paso Procesal");
        jButtonConsultaCausaAgregarPaso1.setEnabled(false);
        jButtonConsultaCausaAgregarPaso1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultaCausaAgregarPasoActionPerformed(evt);
            }
        });

        jButtonBajaCausas1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBajaCausas1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/eliminar.png"))); // NOI18N
        jButtonBajaCausas1.setText("EliminarCausa");
        jButtonBajaCausas1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBajaCausasActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogConsultaCausaLayout = new javax.swing.GroupLayout(jDialogConsultaCausa.getContentPane());
        jDialogConsultaCausa.getContentPane().setLayout(jDialogConsultaCausaLayout);
        jDialogConsultaCausaLayout.setHorizontalGroup(
            jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaCausaLayout.createSequentialGroup()
                .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jDialogConsultaCausaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jDialogConsultaCausaLayout.createSequentialGroup()
                                .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabelContraparte1)
                                    .addComponent(jLabelNumConsultaCausa)
                                    .addComponent(jLabelFechaInicioConsultaCausa)
                                    .addComponent(jLabelFechaCierreConsultaCausa)
                                    .addComponent(jLabelCaratulaConsultaCausa)
                                    .addComponent(jLabelAbogadoApoderadoConsultaCausa)
                                    .addComponent(jLabelAbogadoContraparte1)
                                    .addComponent(jLabelCliente1)
                                    .addComponent(jLabelTipoConsultaCausa)
                                    .addComponent(jLabelJuzgadoConsultaCausa)
                                    .addComponent(jLabelDescConsultaCausa))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jTextFieldJuzgadoConsultaCausa)
                                    .addComponent(jScrollPaneConsultaCausaDescripcion)
                                    .addComponent(jDateChooserFechaInicioConsultaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jDialogConsultaCausaLayout.createSequentialGroup()
                                        .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                            .addComponent(jTextFieldContraparteConsultaCausa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)
                                            .addComponent(jTextFieldClienteConsultaCausa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)
                                            .addComponent(jTextFieldAbogadoContraparteConsultaCausa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)
                                            .addComponent(jTextFieldNumConsultaCausa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)
                                            .addComponent(jTextFieldCaratulaConsultaCausa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)
                                            .addComponent(jTextFieldAbogadoApoderadoConsultaCausa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)
                                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jDialogConsultaCausaLayout.createSequentialGroup()
                                                .addComponent(jComboBoxTipoConsultaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(jTextFieldTipoCausaOtro)))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jButtonContraparteConsultaCausa)
                                            .addComponent(jButtonClienteConsultaCausa)
                                            .addComponent(jButtonAbogadoContraparteConsultaCausa)
                                            .addComponent(jButtonAbogadoApoderadoConsultaCausa)))
                                    .addComponent(jDateChooserFechaCierreConsultaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(jLabelTituloConsultaCausa))
                        .addGap(18, 18, 18)
                        .addComponent(jPanelAgregarPasoProcesalConsultaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jDialogConsultaCausaLayout.createSequentialGroup()
                        .addGap(254, 254, 254)
                        .addComponent(jButtonConfirmarConsultaCausa)
                        .addGap(145, 145, 145)
                        .addComponent(jButtonBajaCausas)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonCancelarConsultaCausa)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jDialogConsultaCausaLayout.setVerticalGroup(
            jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaCausaLayout.createSequentialGroup()
                .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogConsultaCausaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabelTituloConsultaCausa)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldNumConsultaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelNumConsultaCausa))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelCaratulaConsultaCausa)
                            .addComponent(jTextFieldCaratulaConsultaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelFechaInicioConsultaCausa)
                            .addComponent(jDateChooserFechaInicioConsultaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(11, 11, 11)
                        .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelFechaCierreConsultaCausa)
                            .addComponent(jDateChooserFechaCierreConsultaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelAbogadoApoderadoConsultaCausa)
                            .addComponent(jTextFieldAbogadoApoderadoConsultaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButtonAbogadoApoderadoConsultaCausa))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelAbogadoContraparte1)
                            .addComponent(jTextFieldAbogadoContraparteConsultaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButtonAbogadoContraparteConsultaCausa))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelCliente1)
                            .addComponent(jTextFieldClienteConsultaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButtonClienteConsultaCausa))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldContraparteConsultaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelContraparte1)
                            .addComponent(jButtonContraparteConsultaCausa))
                        .addGap(9, 9, 9)
                        .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboBoxTipoConsultaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelTipoConsultaCausa)
                            .addComponent(jTextFieldTipoCausaOtro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelJuzgadoConsultaCausa)
                            .addComponent(jTextFieldJuzgadoConsultaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelDescConsultaCausa)
                            .addComponent(jScrollPaneConsultaCausaDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogConsultaCausaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanelAgregarPasoProcesalConsultaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(28, 28, 28)
                .addGroup(jDialogConsultaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonConfirmarConsultaCausa)
                    .addComponent(jButtonBajaCausas)
                    .addComponent(jButtonCancelarConsultaCausa))
                .addContainerGap(37, Short.MAX_VALUE))
        );

        jDialogAgregarPasoProcesal.setTitle("Pasos Tramites");
        jDialogAgregarPasoProcesal.setMinimumSize(new java.awt.Dimension(800, 400));
        jDialogAgregarPasoProcesal.setModal(true);

        jLabelAgregarPasoFechaTitulo.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelAgregarPasoFechaTitulo.setText("Datos Pasos");

        jLabelAgregarPasoFechaRealizacion.setText("Fecha de realización:");

        jLabelAgregarPasoFechaVencimiento.setText("Fecha de vencimiento:");

        jLabelAgregarPasoDescripcion.setText("Descripción:");

        jTextAreaAgregarPasoDescripcion.setColumns(20);
        jTextAreaAgregarPasoDescripcion.setRows(5);
        jScrollPaneAgregarPasoDescr.setViewportView(jTextAreaAgregarPasoDescripcion);

        jButtonCancelarNuevoPaso.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelarNuevoPaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarNuevoPaso.setText("Cancelar");
        jButtonCancelarNuevoPaso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarNuevoPasoActionPerformed(evt);
            }
        });

        jPanelDocumentosRelacionadosPasoProcesal.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Documentos Relacionados", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N

        jButtonAgregarDocumentoPaso.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAgregarDocumentoPaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/agregar.png"))); // NOI18N
        jButtonAgregarDocumentoPaso.setText("Cargar Documentos");
        jButtonAgregarDocumentoPaso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAgregarDocumentoPasoActionPerformed(evt);
            }
        });

        jButtonAbrirDocumentosPaso.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAbrirDocumentosPaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/carpeta.png"))); // NOI18N
        jButtonAbrirDocumentosPaso.setText("Abrir Documentos");
        jButtonAbrirDocumentosPaso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAbrirDocumentosPasoActionPerformed(evt);
            }
        });

        jButtonCrearDocumentoPaso.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCrearDocumentoPaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/documento.png"))); // NOI18N
        jButtonCrearDocumentoPaso.setText("Crear Documentos");
        jButtonCrearDocumentoPaso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCrearDocumentoPasoActionPerformed(evt);
            }
        });

        jButtonEliminarDocumentosPAso.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarDocumentosPAso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/eliminar.png"))); // NOI18N
        jButtonEliminarDocumentosPAso.setText("Eliminar Documentos");
        jButtonEliminarDocumentosPAso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarDocumentosPAsoActionPerformed(evt);
            }
        });

        jTableDocumentosRelacionadosPaso.setModel(this.datosRutaPaso);
        jScrollPane9.setViewportView(jTableDocumentosRelacionadosPaso);

        javax.swing.GroupLayout jPanelDocumentosRelacionadosPasoProcesalLayout = new javax.swing.GroupLayout(jPanelDocumentosRelacionadosPasoProcesal);
        jPanelDocumentosRelacionadosPasoProcesal.setLayout(jPanelDocumentosRelacionadosPasoProcesalLayout);
        jPanelDocumentosRelacionadosPasoProcesalLayout.setHorizontalGroup(
            jPanelDocumentosRelacionadosPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelDocumentosRelacionadosPasoProcesalLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 323, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelDocumentosRelacionadosPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelDocumentosRelacionadosPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jButtonEliminarDocumentosPAso, 0, 0, Short.MAX_VALUE)
                        .addComponent(jButtonAbrirDocumentosPaso, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonAgregarDocumentoPaso))
                    .addComponent(jButtonCrearDocumentoPaso, javax.swing.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanelDocumentosRelacionadosPasoProcesalLayout.setVerticalGroup(
            jPanelDocumentosRelacionadosPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelDocumentosRelacionadosPasoProcesalLayout.createSequentialGroup()
                .addGroup(jPanelDocumentosRelacionadosPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE)
                    .addGroup(jPanelDocumentosRelacionadosPasoProcesalLayout.createSequentialGroup()
                        .addComponent(jButtonAgregarDocumentoPaso)
                        .addGap(28, 28, 28)
                        .addComponent(jButtonAbrirDocumentosPaso)
                        .addGap(29, 29, 29)
                        .addComponent(jButtonCrearDocumentoPaso)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)
                        .addComponent(jButtonEliminarDocumentosPAso)))
                .addContainerGap())
        );

        jButtonAgregarPasoATramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAgregarPasoATramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/guardar.png"))); // NOI18N
        jButtonAgregarPasoATramite.setText("Agregar Paso a Trámite");
        jButtonAgregarPasoATramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAgregarPasoATramiteActionPerformed(evt);
            }
        });

        jButtonModificarPasoTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonModificarPasoTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/modificar.png"))); // NOI18N
        jButtonModificarPasoTramite.setText("Modificar");
        jButtonModificarPasoTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonModificarPasoTramiteActionPerformed(evt);
            }
        });

        jButtonGuardarCambiosPasosTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonGuardarCambiosPasosTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/guardar.png"))); // NOI18N
        jButtonGuardarCambiosPasosTramite.setText("Guardar Cambios");
        jButtonGuardarCambiosPasosTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarCambiosPasosTramiteActionPerformed(evt);
            }
        });

        jButtonEliminarPasoTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarPasoTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/eliminar.png"))); // NOI18N
        jButtonEliminarPasoTramite.setText("Eliminar");
        jButtonEliminarPasoTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarPasoTramiteActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogAgregarPasoProcesalLayout = new javax.swing.GroupLayout(jDialogAgregarPasoProcesal.getContentPane());
        jDialogAgregarPasoProcesal.getContentPane().setLayout(jDialogAgregarPasoProcesalLayout);
        jDialogAgregarPasoProcesalLayout.setHorizontalGroup(
            jDialogAgregarPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAgregarPasoProcesalLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogAgregarPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogAgregarPasoProcesalLayout.createSequentialGroup()
                        .addGroup(jDialogAgregarPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jScrollPaneAgregarPasoDescr)
                            .addComponent(jLabelAgregarPasoFechaTitulo)
                            .addGroup(jDialogAgregarPasoProcesalLayout.createSequentialGroup()
                                .addGroup(jDialogAgregarPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(jDialogAgregarPasoProcesalLayout.createSequentialGroup()
                                        .addComponent(jLabelAgregarPasoFechaRealizacion)
                                        .addGap(11, 11, 11))
                                    .addGroup(jDialogAgregarPasoProcesalLayout.createSequentialGroup()
                                        .addComponent(jLabelAgregarPasoFechaVencimiento)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))
                                .addGroup(jDialogAgregarPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(jDateChooserAgregarPasoFechaRealizacion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jDateChooserAgregarPasoFechaVencimiento, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)))
                            .addComponent(jLabelAgregarPasoDescripcion))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanelDocumentosRelacionadosPasoProcesal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jDialogAgregarPasoProcesalLayout.createSequentialGroup()
                        .addComponent(jButtonAgregarPasoATramite)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonModificarPasoTramite, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonGuardarCambiosPasosTramite)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonEliminarPasoTramite, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE)
                        .addComponent(jButtonCancelarNuevoPaso)))
                .addContainerGap())
        );
        jDialogAgregarPasoProcesalLayout.setVerticalGroup(
            jDialogAgregarPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAgregarPasoProcesalLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogAgregarPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogAgregarPasoProcesalLayout.createSequentialGroup()
                        .addComponent(jLabelAgregarPasoFechaTitulo)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jDialogAgregarPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jDateChooserAgregarPasoFechaRealizacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelAgregarPasoFechaRealizacion))
                        .addGap(11, 11, 11)
                        .addGroup(jDialogAgregarPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jDialogAgregarPasoProcesalLayout.createSequentialGroup()
                                .addComponent(jLabelAgregarPasoFechaVencimiento)
                                .addGap(12, 12, 12)
                                .addComponent(jLabelAgregarPasoDescripcion))
                            .addComponent(jDateChooserAgregarPasoFechaVencimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPaneAgregarPasoDescr, javax.swing.GroupLayout.DEFAULT_SIZE, 116, Short.MAX_VALUE))
                    .addComponent(jPanelDocumentosRelacionadosPasoProcesal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(18, 18, 18)
                .addGroup(jDialogAgregarPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonAgregarPasoATramite)
                    .addComponent(jButtonCancelarNuevoPaso)
                    .addComponent(jButtonModificarPasoTramite)
                    .addComponent(jButtonGuardarCambiosPasosTramite)
                    .addComponent(jButtonEliminarPasoTramite))
                .addContainerGap())
        );

        jDialogConfirmacionBajaCausa.setTitle("Eliminar Causa");
        jDialogConfirmacionBajaCausa.setMinimumSize(new java.awt.Dimension(300, 130));
        jDialogConfirmacionBajaCausa.setModal(true);
        jDialogConfirmacionBajaCausa.setResizable(false);

        jLabelConfirmacionBajaCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelConfirmacionBajaCausa.setText("¿Seguro desea eliminar la causa?");

        jButtonAceptarEliminarCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAceptarEliminarCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAceptarEliminarCausa.setText("Si");
        jButtonAceptarEliminarCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarEliminarCausaActionPerformed(evt);
            }
        });

        jButtonCancelarEliminarCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelarEliminarCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarEliminarCausa.setText("No");
        jButtonCancelarEliminarCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarEliminarCausaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogConfirmacionBajaCausaLayout = new javax.swing.GroupLayout(jDialogConfirmacionBajaCausa.getContentPane());
        jDialogConfirmacionBajaCausa.getContentPane().setLayout(jDialogConfirmacionBajaCausaLayout);
        jDialogConfirmacionBajaCausaLayout.setHorizontalGroup(
            jDialogConfirmacionBajaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConfirmacionBajaCausaLayout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addGroup(jDialogConfirmacionBajaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelConfirmacionBajaCausa)
                    .addGroup(jDialogConfirmacionBajaCausaLayout.createSequentialGroup()
                        .addGap(8, 8, 8)
                        .addComponent(jButtonAceptarEliminarCausa)
                        .addGap(50, 50, 50)
                        .addComponent(jButtonCancelarEliminarCausa)))
                .addContainerGap(75, Short.MAX_VALUE))
        );
        jDialogConfirmacionBajaCausaLayout.setVerticalGroup(
            jDialogConfirmacionBajaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConfirmacionBajaCausaLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(jLabelConfirmacionBajaCausa)
                .addGap(18, 18, 18)
                .addGroup(jDialogConfirmacionBajaCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonCancelarEliminarCausa)
                    .addComponent(jButtonAceptarEliminarCausa))
                .addContainerGap(28, Short.MAX_VALUE))
        );

        jDialogEliminarDocumentoRelacionadosTramite.setTitle("Eliminar Documento Tramite");
        jDialogEliminarDocumentoRelacionadosTramite.setAlwaysOnTop(true);
        jDialogEliminarDocumentoRelacionadosTramite.setMinimumSize(new java.awt.Dimension(300, 120));
        jDialogEliminarDocumentoRelacionadosTramite.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        jLabelEliminarDocuemnteoRelacionadoTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelEliminarDocuemnteoRelacionadoTramite.setText("¿Esta seguro que desea eliminar el documento?");

        jButtonEliminarDocumentoRelacionadoTramiteSI.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarDocumentoRelacionadoTramiteSI.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonEliminarDocumentoRelacionadoTramiteSI.setText("Si");
        jButtonEliminarDocumentoRelacionadoTramiteSI.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarDocumentoRelacionadoTramiteSIActionPerformed(evt);
            }
        });

        jButtonEliminarDocumentoRelacionadoTramiteNO.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarDocumentoRelacionadoTramiteNO.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonEliminarDocumentoRelacionadoTramiteNO.setText("No");
        jButtonEliminarDocumentoRelacionadoTramiteNO.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarDocumentoRelacionadoTramiteNOActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogEliminarDocumentoRelacionadosTramiteLayout = new javax.swing.GroupLayout(jDialogEliminarDocumentoRelacionadosTramite.getContentPane());
        jDialogEliminarDocumentoRelacionadosTramite.getContentPane().setLayout(jDialogEliminarDocumentoRelacionadosTramiteLayout);
        jDialogEliminarDocumentoRelacionadosTramiteLayout.setHorizontalGroup(
            jDialogEliminarDocumentoRelacionadosTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogEliminarDocumentoRelacionadosTramiteLayout.createSequentialGroup()
                .addGroup(jDialogEliminarDocumentoRelacionadosTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogEliminarDocumentoRelacionadosTramiteLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabelEliminarDocuemnteoRelacionadoTramite))
                    .addGroup(jDialogEliminarDocumentoRelacionadosTramiteLayout.createSequentialGroup()
                        .addGap(55, 55, 55)
                        .addComponent(jButtonEliminarDocumentoRelacionadoTramiteSI)
                        .addGap(66, 66, 66)
                        .addComponent(jButtonEliminarDocumentoRelacionadoTramiteNO)))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jDialogEliminarDocumentoRelacionadosTramiteLayout.setVerticalGroup(
            jDialogEliminarDocumentoRelacionadosTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogEliminarDocumentoRelacionadosTramiteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelEliminarDocuemnteoRelacionadoTramite)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jDialogEliminarDocumentoRelacionadosTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonEliminarDocumentoRelacionadoTramiteNO)
                    .addComponent(jButtonEliminarDocumentoRelacionadoTramiteSI))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogEliminarDocumentosRelacionadosTarea.setTitle("Eliminar Documentp");
        jDialogEliminarDocumentosRelacionadosTarea.setMinimumSize(new java.awt.Dimension(400, 120));
        jDialogEliminarDocumentosRelacionadosTarea.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        jLabelEliminarDocumentoTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelEliminarDocumentoTarea.setText("¿Esta seguro que desea eliminar el documento?");

        jButtonEliminarDocuemntoTareaSI.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarDocuemntoTareaSI.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonEliminarDocuemntoTareaSI.setText("Si");
        jButtonEliminarDocuemntoTareaSI.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarDocuemntoTareaSIActionPerformed(evt);
            }
        });

        jButtonEliminarDocumentoTareaNO.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarDocumentoTareaNO.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonEliminarDocumentoTareaNO.setText("No");
        jButtonEliminarDocumentoTareaNO.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarDocumentoTareaNOActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogEliminarDocumentosRelacionadosTareaLayout = new javax.swing.GroupLayout(jDialogEliminarDocumentosRelacionadosTarea.getContentPane());
        jDialogEliminarDocumentosRelacionadosTarea.getContentPane().setLayout(jDialogEliminarDocumentosRelacionadosTareaLayout);
        jDialogEliminarDocumentosRelacionadosTareaLayout.setHorizontalGroup(
            jDialogEliminarDocumentosRelacionadosTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogEliminarDocumentosRelacionadosTareaLayout.createSequentialGroup()
                .addGroup(jDialogEliminarDocumentosRelacionadosTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogEliminarDocumentosRelacionadosTareaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabelEliminarDocumentoTarea))
                    .addGroup(jDialogEliminarDocumentosRelacionadosTareaLayout.createSequentialGroup()
                        .addGap(49, 49, 49)
                        .addComponent(jButtonEliminarDocuemntoTareaSI)
                        .addGap(71, 71, 71)
                        .addComponent(jButtonEliminarDocumentoTareaNO)))
                .addContainerGap(30, Short.MAX_VALUE))
        );
        jDialogEliminarDocumentosRelacionadosTareaLayout.setVerticalGroup(
            jDialogEliminarDocumentosRelacionadosTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogEliminarDocumentosRelacionadosTareaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelEliminarDocumentoTarea)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jDialogEliminarDocumentosRelacionadosTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonEliminarDocuemntoTareaSI)
                    .addComponent(jButtonEliminarDocumentoTareaNO))
                .addContainerGap(17, Short.MAX_VALUE))
        );

        jDialogNombreRutaDocumento.setTitle("Ingrese el nombre del documento.");
        jDialogNombreRutaDocumento.setMinimumSize(new java.awt.Dimension(400, 120));
        jDialogNombreRutaDocumento.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);
        jDialogNombreRutaDocumento.setResizable(false);

        jLabelNombreRutaDocumento.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelNombreRutaDocumento.setText("Nombre del Documento:");

        jButtonAceptarRutaDocumento.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAceptarRutaDocumento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAceptarRutaDocumento.setText("Aceptar");
        jButtonAceptarRutaDocumento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarRutaDocumentoActionPerformed(evt);
            }
        });

        jButtonCancelarNombreRutaDocumento.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelarNombreRutaDocumento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarNombreRutaDocumento.setText("Cancelar");
        jButtonCancelarNombreRutaDocumento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarNombreRutaDocumentoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogNombreRutaDocumentoLayout = new javax.swing.GroupLayout(jDialogNombreRutaDocumento.getContentPane());
        jDialogNombreRutaDocumento.getContentPane().setLayout(jDialogNombreRutaDocumentoLayout);
        jDialogNombreRutaDocumentoLayout.setHorizontalGroup(
            jDialogNombreRutaDocumentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNombreRutaDocumentoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogNombreRutaDocumentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogNombreRutaDocumentoLayout.createSequentialGroup()
                        .addComponent(jLabelNombreRutaDocumento)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldNombreRutaDocumentoTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 228, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogNombreRutaDocumentoLayout.createSequentialGroup()
                        .addComponent(jButtonAceptarRutaDocumento)
                        .addGap(53, 53, 53)
                        .addComponent(jButtonCancelarNombreRutaDocumento)
                        .addGap(82, 82, 82))))
        );
        jDialogNombreRutaDocumentoLayout.setVerticalGroup(
            jDialogNombreRutaDocumentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNombreRutaDocumentoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogNombreRutaDocumentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNombreRutaDocumento)
                    .addComponent(jTextFieldNombreRutaDocumentoTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jDialogNombreRutaDocumentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonAceptarRutaDocumento)
                    .addComponent(jButtonCancelarNombreRutaDocumento))
                .addContainerGap(16, Short.MAX_VALUE))
        );

        jDialogNombreRutaDocumentoTarea.setTitle("Ingrese el nombre del documento.");
        jDialogNombreRutaDocumentoTarea.setMinimumSize(new java.awt.Dimension(400, 120));
        jDialogNombreRutaDocumentoTarea.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);
        jDialogNombreRutaDocumentoTarea.setResizable(false);

        jButtonCancelarNombreRutaTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelarNombreRutaTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarNombreRutaTarea.setText("Cancelar");
        jButtonCancelarNombreRutaTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarNombreRutaTareaActionPerformed(evt);
            }
        });

        jButtonAceptarRutaDocumentoTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAceptarRutaDocumentoTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAceptarRutaDocumentoTarea.setText("Aceptar");
        jButtonAceptarRutaDocumentoTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarRutaDocumentoTareaActionPerformed(evt);
            }
        });

        jLabelNombreRutaDocumentoTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelNombreRutaDocumentoTarea.setText("Nombre del Documento:");

        javax.swing.GroupLayout jDialogNombreRutaDocumentoTareaLayout = new javax.swing.GroupLayout(jDialogNombreRutaDocumentoTarea.getContentPane());
        jDialogNombreRutaDocumentoTarea.getContentPane().setLayout(jDialogNombreRutaDocumentoTareaLayout);
        jDialogNombreRutaDocumentoTareaLayout.setHorizontalGroup(
            jDialogNombreRutaDocumentoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
            .addGroup(jDialogNombreRutaDocumentoTareaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogNombreRutaDocumentoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogNombreRutaDocumentoTareaLayout.createSequentialGroup()
                        .addComponent(jLabelNombreRutaDocumentoTarea)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldNombreRutaDocumentoTarea, javax.swing.GroupLayout.DEFAULT_SIZE, 228, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogNombreRutaDocumentoTareaLayout.createSequentialGroup()
                        .addComponent(jButtonAceptarRutaDocumentoTarea)
                        .addGap(53, 53, 53)
                        .addComponent(jButtonCancelarNombreRutaTarea)
                        .addGap(82, 82, 82))))
        );
        jDialogNombreRutaDocumentoTareaLayout.setVerticalGroup(
            jDialogNombreRutaDocumentoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 71, Short.MAX_VALUE)
            .addGroup(jDialogNombreRutaDocumentoTareaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogNombreRutaDocumentoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNombreRutaDocumentoTarea)
                    .addComponent(jTextFieldNombreRutaDocumentoTarea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jDialogNombreRutaDocumentoTareaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonAceptarRutaDocumentoTarea)
                    .addComponent(jButtonCancelarNombreRutaTarea))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogNombreRutasDocumentosPaso.setTitle("Ingrese el nombre del documento.");
        jDialogNombreRutasDocumentosPaso.setMinimumSize(new java.awt.Dimension(400, 120));
        jDialogNombreRutasDocumentosPaso.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);
        jDialogNombreRutasDocumentosPaso.setResizable(false);

        jButtonCancelarNombreRutaPaso.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelarNombreRutaPaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarNombreRutaPaso.setText("Cancelar");
        jButtonCancelarNombreRutaPaso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarNombreRutaPasoActionPerformed(evt);
            }
        });

        jButtonAceptarRutaDocumentoPaso.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAceptarRutaDocumentoPaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAceptarRutaDocumentoPaso.setText("Aceptar");
        jButtonAceptarRutaDocumentoPaso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarRutaDocumentoPasoActionPerformed(evt);
            }
        });

        jLabelNombreRutaDocumentoPaso.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelNombreRutaDocumentoPaso.setText("Nombre del Documento:");

        javax.swing.GroupLayout jDialogNombreRutasDocumentosPasoLayout = new javax.swing.GroupLayout(jDialogNombreRutasDocumentosPaso.getContentPane());
        jDialogNombreRutasDocumentosPaso.getContentPane().setLayout(jDialogNombreRutasDocumentosPasoLayout);
        jDialogNombreRutasDocumentosPasoLayout.setHorizontalGroup(
            jDialogNombreRutasDocumentosPasoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
            .addGap(0, 400, Short.MAX_VALUE)
            .addGroup(jDialogNombreRutasDocumentosPasoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogNombreRutasDocumentosPasoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogNombreRutasDocumentosPasoLayout.createSequentialGroup()
                        .addComponent(jLabelNombreRutaDocumentoPaso)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldNombreRutaDocumentoPaso, javax.swing.GroupLayout.DEFAULT_SIZE, 228, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogNombreRutasDocumentosPasoLayout.createSequentialGroup()
                        .addComponent(jButtonAceptarRutaDocumentoPaso)
                        .addGap(53, 53, 53)
                        .addComponent(jButtonCancelarNombreRutaPaso)
                        .addGap(82, 82, 82))))
        );
        jDialogNombreRutasDocumentosPasoLayout.setVerticalGroup(
            jDialogNombreRutasDocumentosPasoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 71, Short.MAX_VALUE)
            .addGap(0, 71, Short.MAX_VALUE)
            .addGroup(jDialogNombreRutasDocumentosPasoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogNombreRutasDocumentosPasoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNombreRutaDocumentoPaso)
                    .addComponent(jTextFieldNombreRutaDocumentoPaso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jDialogNombreRutasDocumentosPasoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonAceptarRutaDocumentoPaso)
                    .addComponent(jButtonCancelarNombreRutaPaso))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogEliminarDocumentoRelacionadoPasoTramite.setTitle("Eliminar");
        jDialogEliminarDocumentoRelacionadoPasoTramite.setMinimumSize(new java.awt.Dimension(400, 200));
        jDialogEliminarDocumentoRelacionadoPasoTramite.setModal(true);

        jLabelEliminarDocumentoPaso.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelEliminarDocumentoPaso.setText("¿Esta seguro que desea eliminar el documento?");

        jButtonEliminarDocuemntoPasoSI.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarDocuemntoPasoSI.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonEliminarDocuemntoPasoSI.setText("Si");
        jButtonEliminarDocuemntoPasoSI.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarDocuemntoPasoSIActionPerformed(evt);
            }
        });

        jButtonEliminarDocumentoPasoNO.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarDocumentoPasoNO.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonEliminarDocumentoPasoNO.setText("No");
        jButtonEliminarDocumentoPasoNO.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarDocumentoPasoNOActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogEliminarDocumentoRelacionadoPasoTramiteLayout = new javax.swing.GroupLayout(jDialogEliminarDocumentoRelacionadoPasoTramite.getContentPane());
        jDialogEliminarDocumentoRelacionadoPasoTramite.getContentPane().setLayout(jDialogEliminarDocumentoRelacionadoPasoTramiteLayout);
        jDialogEliminarDocumentoRelacionadoPasoTramiteLayout.setHorizontalGroup(
            jDialogEliminarDocumentoRelacionadoPasoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 311, Short.MAX_VALUE)
            .addGroup(jDialogEliminarDocumentoRelacionadoPasoTramiteLayout.createSequentialGroup()
                .addGroup(jDialogEliminarDocumentoRelacionadoPasoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogEliminarDocumentoRelacionadoPasoTramiteLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabelEliminarDocumentoPaso))
                    .addGroup(jDialogEliminarDocumentoRelacionadoPasoTramiteLayout.createSequentialGroup()
                        .addGap(49, 49, 49)
                        .addComponent(jButtonEliminarDocuemntoPasoSI)
                        .addGap(71, 71, 71)
                        .addComponent(jButtonEliminarDocumentoPasoNO)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jDialogEliminarDocumentoRelacionadoPasoTramiteLayout.setVerticalGroup(
            jDialogEliminarDocumentoRelacionadoPasoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 71, Short.MAX_VALUE)
            .addGroup(jDialogEliminarDocumentoRelacionadoPasoTramiteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelEliminarDocumentoPaso)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jDialogEliminarDocumentoRelacionadoPasoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonEliminarDocuemntoPasoSI)
                    .addComponent(jButtonEliminarDocumentoPasoNO))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogConfirmacionEliminarPaso.setTitle("Eliminar Paso Procesal");
        jDialogConfirmacionEliminarPaso.setMinimumSize(new java.awt.Dimension(300, 130));
        jDialogConfirmacionEliminarPaso.setModal(true);
        jDialogConfirmacionEliminarPaso.setResizable(false);

        jLabelConfirmacionEliminarPaso.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelConfirmacionEliminarPaso.setText("¿Seguro desea eliminar el paso procesal?");

        jButtonSiEliminarPaso.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonSiEliminarPaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonSiEliminarPaso.setText("Si");
        jButtonSiEliminarPaso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSiEliminarPasoActionPerformed(evt);
            }
        });

        jButtonNoEliminarPaso.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonNoEliminarPaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonNoEliminarPaso.setText("No");
        jButtonNoEliminarPaso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNoEliminarPasoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogConfirmacionEliminarPasoLayout = new javax.swing.GroupLayout(jDialogConfirmacionEliminarPaso.getContentPane());
        jDialogConfirmacionEliminarPaso.getContentPane().setLayout(jDialogConfirmacionEliminarPasoLayout);
        jDialogConfirmacionEliminarPasoLayout.setHorizontalGroup(
            jDialogConfirmacionEliminarPasoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConfirmacionEliminarPasoLayout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addGroup(jDialogConfirmacionEliminarPasoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelConfirmacionEliminarPaso)
                    .addGroup(jDialogConfirmacionEliminarPasoLayout.createSequentialGroup()
                        .addGap(32, 32, 32)
                        .addComponent(jButtonSiEliminarPaso)
                        .addGap(43, 43, 43)
                        .addComponent(jButtonNoEliminarPaso)))
                .addContainerGap(42, Short.MAX_VALUE))
        );
        jDialogConfirmacionEliminarPasoLayout.setVerticalGroup(
            jDialogConfirmacionEliminarPasoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConfirmacionEliminarPasoLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(jLabelConfirmacionEliminarPaso)
                .addGap(18, 18, 18)
                .addGroup(jDialogConfirmacionEliminarPasoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonSiEliminarPaso)
                    .addComponent(jButtonNoEliminarPaso))
                .addContainerGap(23, Short.MAX_VALUE))
        );

        jDialogConsultaPasoProcesal.setTitle("Datos del Paso Procesal");
        jDialogConsultaPasoProcesal.setMinimumSize(new java.awt.Dimension(900, 400));
        jDialogConsultaPasoProcesal.setModal(true);
        jDialogConsultaPasoProcesal.setResizable(false);

        jLabelAgregarPasoFechaRealizacion1.setText("Fecha de realización:");

        jLabelAgregarPasoFechaVencimiento1.setText("Fecha de vencimiento:");

        jLabelAgregarPasoDescripcion1.setText("Descripción:");

        jDateChooserConsultarPasoFechaRealizacion.setEnabled(false);

        jDateChooserConsultarPasoFechaVencimiento.setEnabled(false);

        jTextAreaConsultarPasoDescripcion.setColumns(20);
        jTextAreaConsultarPasoDescripcion.setRows(5);
        jTextAreaConsultarPasoDescripcion.setEnabled(false);
        jScrollPaneAgregarPasoDescr1.setViewportView(jTextAreaConsultarPasoDescripcion);

        jButtonModificarDatosPaso.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonModificarDatosPaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/modificar.png"))); // NOI18N
        jButtonModificarDatosPaso.setText("Modificar Datos");
        jButtonModificarDatosPaso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonModificarDatosPasoActionPerformed(evt);
            }
        });

        jPanelDocumentosRelacionadosPasoProcesal1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Documentos Relacionados", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N

        jButtonAgregarDocumentoPaso1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAgregarDocumentoPaso1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/agregar.png"))); // NOI18N
        jButtonAgregarDocumentoPaso1.setText("Cargar Documento");
        jButtonAgregarDocumentoPaso1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAgregarDocumentoPaso1ActionPerformed(evt);
            }
        });

        jButtonAbrirDocumentosPaso1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAbrirDocumentosPaso1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/carpeta.png"))); // NOI18N
        jButtonAbrirDocumentosPaso1.setText("Abrir Documento");
        jButtonAbrirDocumentosPaso1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAbrirDocumentosPaso1ActionPerformed(evt);
            }
        });

        jButtonCrearDocumentoPaso1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCrearDocumentoPaso1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/documento.png"))); // NOI18N
        jButtonCrearDocumentoPaso1.setText("Crear Documento");
        jButtonCrearDocumentoPaso1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCrearDocumentoPaso1ActionPerformed(evt);
            }
        });

        jButtonEliminarDocumentosPAso1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarDocumentosPAso1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/eliminar.png"))); // NOI18N
        jButtonEliminarDocumentosPAso1.setText("Eliminar Documento");
        jButtonEliminarDocumentosPAso1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarDocumentosPAso1ActionPerformed(evt);
            }
        });

        jTableDocumentosRelacionadosPaso1.setModel(this.datosRutaPaso);
        jScrollPane10.setViewportView(jTableDocumentosRelacionadosPaso1);

        javax.swing.GroupLayout jPanelDocumentosRelacionadosPasoProcesal1Layout = new javax.swing.GroupLayout(jPanelDocumentosRelacionadosPasoProcesal1);
        jPanelDocumentosRelacionadosPasoProcesal1.setLayout(jPanelDocumentosRelacionadosPasoProcesal1Layout);
        jPanelDocumentosRelacionadosPasoProcesal1Layout.setHorizontalGroup(
            jPanelDocumentosRelacionadosPasoProcesal1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelDocumentosRelacionadosPasoProcesal1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 301, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelDocumentosRelacionadosPasoProcesal1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jButtonAgregarDocumentoPaso1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonAbrirDocumentosPaso1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonCrearDocumentoPaso1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonEliminarDocumentosPAso1, javax.swing.GroupLayout.DEFAULT_SIZE, 189, Short.MAX_VALUE))
                .addGap(33, 33, 33))
        );
        jPanelDocumentosRelacionadosPasoProcesal1Layout.setVerticalGroup(
            jPanelDocumentosRelacionadosPasoProcesal1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDocumentosRelacionadosPasoProcesal1Layout.createSequentialGroup()
                .addGroup(jPanelDocumentosRelacionadosPasoProcesal1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelDocumentosRelacionadosPasoProcesal1Layout.createSequentialGroup()
                        .addComponent(jButtonAgregarDocumentoPaso1)
                        .addGap(36, 36, 36)
                        .addComponent(jButtonAbrirDocumentosPaso1)
                        .addGap(37, 37, 37)
                        .addComponent(jButtonCrearDocumentoPaso1)
                        .addGap(36, 36, 36)
                        .addComponent(jButtonEliminarDocumentosPAso1))
                    .addComponent(jScrollPane10, javax.swing.GroupLayout.DEFAULT_SIZE, 209, Short.MAX_VALUE))
                .addContainerGap())
        );

        jButton5.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/eliminar.png"))); // NOI18N
        jButton5.setText("Eliminar Paso Procesal");
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        jButton4.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButton4.setText("Cancelar");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        jLabelAgregarPasoFechaTitulo1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelAgregarPasoFechaTitulo1.setText("Datos Paso Procesal");

        javax.swing.GroupLayout jDialogConsultaPasoProcesalLayout = new javax.swing.GroupLayout(jDialogConsultaPasoProcesal.getContentPane());
        jDialogConsultaPasoProcesal.getContentPane().setLayout(jDialogConsultaPasoProcesalLayout);
        jDialogConsultaPasoProcesalLayout.setHorizontalGroup(
            jDialogConsultaPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaPasoProcesalLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogConsultaPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogConsultaPasoProcesalLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(jDialogConsultaPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabelAgregarPasoDescripcion1)
                            .addGroup(jDialogConsultaPasoProcesalLayout.createSequentialGroup()
                                .addGroup(jDialogConsultaPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabelAgregarPasoFechaRealizacion1)
                                    .addComponent(jLabelAgregarPasoFechaVencimiento1))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jDialogConsultaPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(jDateChooserConsultarPasoFechaRealizacion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jDateChooserConsultarPasoFechaVencimiento, javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)))
                            .addComponent(jScrollPaneAgregarPasoDescr1)
                            .addGroup(jDialogConsultaPasoProcesalLayout.createSequentialGroup()
                                .addComponent(jButtonModificarDatosPaso)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))))
                    .addComponent(jLabelAgregarPasoFechaTitulo1))
                .addGap(18, 18, 18)
                .addGroup(jDialogConsultaPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogConsultaPasoProcesalLayout.createSequentialGroup()
                        .addComponent(jButton5)
                        .addGap(58, 58, 58)
                        .addComponent(jButton4))
                    .addComponent(jPanelDocumentosRelacionadosPasoProcesal1, javax.swing.GroupLayout.PREFERRED_SIZE, 526, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(20, Short.MAX_VALUE))
        );
        jDialogConsultaPasoProcesalLayout.setVerticalGroup(
            jDialogConsultaPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaPasoProcesalLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogConsultaPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogConsultaPasoProcesalLayout.createSequentialGroup()
                        .addComponent(jLabelAgregarPasoFechaTitulo1)
                        .addGap(18, 18, 18)
                        .addGroup(jDialogConsultaPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jDialogConsultaPasoProcesalLayout.createSequentialGroup()
                                .addComponent(jLabelAgregarPasoFechaRealizacion1)
                                .addGap(17, 17, 17)
                                .addComponent(jLabelAgregarPasoFechaVencimiento1)
                                .addGap(17, 17, 17)
                                .addComponent(jLabelAgregarPasoDescripcion1))
                            .addGroup(jDialogConsultaPasoProcesalLayout.createSequentialGroup()
                                .addComponent(jDateChooserConsultarPasoFechaRealizacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(11, 11, 11)
                                .addComponent(jDateChooserConsultarPasoFechaVencimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPaneAgregarPasoDescr1, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jPanelDocumentosRelacionadosPasoProcesal1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jDialogConsultaPasoProcesalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonModificarDatosPaso)
                    .addComponent(jButton4)
                    .addComponent(jButton5))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogEliminarPasoTramite.setTitle("Eliminar ");
        jDialogEliminarPasoTramite.setMinimumSize(new java.awt.Dimension(400, 150));
        jDialogEliminarPasoTramite.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        jLabelEliminarPasoTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelEliminarPasoTramite.setText("¿Esta seguro que desea eliminar el paso?");

        jButtonEliminarPasoTramiteSI.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarPasoTramiteSI.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonEliminarPasoTramiteSI.setText("Si");
        jButtonEliminarPasoTramiteSI.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarPasoTramiteSIActionPerformed(evt);
            }
        });

        jButtonEliminarPasoTrtamiteNO.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarPasoTrtamiteNO.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonEliminarPasoTrtamiteNO.setText("No");
        jButtonEliminarPasoTrtamiteNO.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarPasoTrtamiteNOActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogEliminarPasoTramiteLayout = new javax.swing.GroupLayout(jDialogEliminarPasoTramite.getContentPane());
        jDialogEliminarPasoTramite.getContentPane().setLayout(jDialogEliminarPasoTramiteLayout);
        jDialogEliminarPasoTramiteLayout.setHorizontalGroup(
            jDialogEliminarPasoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
            .addGroup(jDialogEliminarPasoTramiteLayout.createSequentialGroup()
                .addGroup(jDialogEliminarPasoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogEliminarPasoTramiteLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabelEliminarPasoTramite))
                    .addGroup(jDialogEliminarPasoTramiteLayout.createSequentialGroup()
                        .addGap(55, 55, 55)
                        .addComponent(jButtonEliminarPasoTramiteSI)
                        .addGap(66, 66, 66)
                        .addComponent(jButtonEliminarPasoTrtamiteNO)))
                .addContainerGap(140, Short.MAX_VALUE))
        );
        jDialogEliminarPasoTramiteLayout.setVerticalGroup(
            jDialogEliminarPasoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 70, Short.MAX_VALUE)
            .addGroup(jDialogEliminarPasoTramiteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelEliminarPasoTramite)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jDialogEliminarPasoTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonEliminarPasoTrtamiteNO)
                    .addComponent(jButtonEliminarPasoTramiteSI))
                .addContainerGap(15, Short.MAX_VALUE))
        );

        jDialogEliminarDocumentoRelacionadosPaso.setTitle("Eliminar Documento Tramite");
        jDialogEliminarDocumentoRelacionadosPaso.setAlwaysOnTop(true);
        jDialogEliminarDocumentoRelacionadosPaso.setMinimumSize(new java.awt.Dimension(330, 140));
        jDialogEliminarDocumentoRelacionadosPaso.setModal(true);
        jDialogEliminarDocumentoRelacionadosPaso.setResizable(false);

        jLabelEliminarDocuemnteoRelacionadoTramite1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelEliminarDocuemnteoRelacionadoTramite1.setText("¿Esta seguro que desea eliminar el documento?");

        jButtonEliminarDocumentoRelacionadoTramiteSI1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarDocumentoRelacionadoTramiteSI1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonEliminarDocumentoRelacionadoTramiteSI1.setText("Si");
        jButtonEliminarDocumentoRelacionadoTramiteSI1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarDocumentoRelacionadoTramiteSI1ActionPerformed(evt);
            }
        });

        jButtonEliminarDocumentoRelacionadoTramiteNO1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarDocumentoRelacionadoTramiteNO1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonEliminarDocumentoRelacionadoTramiteNO1.setText("No");
        jButtonEliminarDocumentoRelacionadoTramiteNO1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarDocumentoRelacionadoTramiteNO1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogEliminarDocumentoRelacionadosPasoLayout = new javax.swing.GroupLayout(jDialogEliminarDocumentoRelacionadosPaso.getContentPane());
        jDialogEliminarDocumentoRelacionadosPaso.getContentPane().setLayout(jDialogEliminarDocumentoRelacionadosPasoLayout);
        jDialogEliminarDocumentoRelacionadosPasoLayout.setHorizontalGroup(
            jDialogEliminarDocumentoRelacionadosPasoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogEliminarDocumentoRelacionadosPasoLayout.createSequentialGroup()
                .addGroup(jDialogEliminarDocumentoRelacionadosPasoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogEliminarDocumentoRelacionadosPasoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabelEliminarDocuemnteoRelacionadoTramite1))
                    .addGroup(jDialogEliminarDocumentoRelacionadosPasoLayout.createSequentialGroup()
                        .addGap(56, 56, 56)
                        .addComponent(jButtonEliminarDocumentoRelacionadoTramiteSI1)
                        .addGap(65, 65, 65)
                        .addComponent(jButtonEliminarDocumentoRelacionadoTramiteNO1)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jDialogEliminarDocumentoRelacionadosPasoLayout.setVerticalGroup(
            jDialogEliminarDocumentoRelacionadosPasoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogEliminarDocumentoRelacionadosPasoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelEliminarDocuemnteoRelacionadoTramite1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jDialogEliminarDocumentoRelacionadosPasoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonEliminarDocumentoRelacionadoTramiteNO1)
                    .addComponent(jButtonEliminarDocumentoRelacionadoTramiteSI1))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogMovimientoPersona.setTitle("Agregar Movimiento");
        jDialogMovimientoPersona.setMinimumSize(new java.awt.Dimension(430, 370));
        jDialogMovimientoPersona.setModal(true);
        jDialogMovimientoPersona.setResizable(false);

        jLabelFechaMovimiento.setText("Fecha");

        jLabelDebeMovimiento.setText("Debe");

        jLabelHaberMovimiento.setText("Haber");

        jLabelDescripcionMovimiento.setText("Descripción");

        jTextAreaDescripcionMovimiento.setColumns(20);
        jTextAreaDescripcionMovimiento.setRows(5);
        jScrollPaneDescripcionMovimiento.setViewportView(jTextAreaDescripcionMovimiento);

        jButtonEliminarMovimientoCuentaCorriente.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEliminarMovimientoCuentaCorriente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/eliminar.png"))); // NOI18N
        jButtonEliminarMovimientoCuentaCorriente.setText("Eliminar");
        jButtonEliminarMovimientoCuentaCorriente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarMovimientoCuentaCorrienteActionPerformed(evt);
            }
        });

        jButtonConfirmarMovimiento.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonConfirmarMovimiento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonConfirmarMovimiento.setText("Confirmar");
        jButtonConfirmarMovimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConfirmarMovimientoActionPerformed(evt);
            }
        });

        jButtonCancelarMovimiento.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelarMovimiento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarMovimiento.setText("Cancelar");
        jButtonCancelarMovimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarMovimientoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogMovimientoPersonaLayout = new javax.swing.GroupLayout(jDialogMovimientoPersona.getContentPane());
        jDialogMovimientoPersona.getContentPane().setLayout(jDialogMovimientoPersonaLayout);
        jDialogMovimientoPersonaLayout.setHorizontalGroup(
            jDialogMovimientoPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogMovimientoPersonaLayout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addGroup(jDialogMovimientoPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jDialogMovimientoPersonaLayout.createSequentialGroup()
                        .addComponent(jButtonEliminarMovimientoCuentaCorriente)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonConfirmarMovimiento)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonCancelarMovimiento))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jDialogMovimientoPersonaLayout.createSequentialGroup()
                        .addGap(2, 2, 2)
                        .addGroup(jDialogMovimientoPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelFechaMovimiento)
                            .addComponent(jLabelDebeMovimiento)
                            .addComponent(jLabelHaberMovimiento)
                            .addComponent(jLabelDescripcionMovimiento))
                        .addGap(41, 41, 41)
                        .addGroup(jDialogMovimientoPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jScrollPaneDescripcionMovimiento)
                            .addComponent(jTextFieldHaberMovimiento)
                            .addComponent(jTextFieldDebeMovimiento)
                            .addComponent(jDateChooserFechaMovimiento, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(28, Short.MAX_VALUE))
        );
        jDialogMovimientoPersonaLayout.setVerticalGroup(
            jDialogMovimientoPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogMovimientoPersonaLayout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addGroup(jDialogMovimientoPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelFechaMovimiento)
                    .addComponent(jDateChooserFechaMovimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(11, 11, 11)
                .addGroup(jDialogMovimientoPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelDebeMovimiento)
                    .addComponent(jTextFieldDebeMovimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jDialogMovimientoPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogMovimientoPersonaLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(jLabelHaberMovimiento))
                    .addGroup(jDialogMovimientoPersonaLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTextFieldHaberMovimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(24, 24, 24)
                .addGroup(jDialogMovimientoPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelDescripcionMovimiento)
                    .addComponent(jScrollPaneDescripcionMovimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogMovimientoPersonaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonCancelarMovimiento)
                    .addComponent(jButtonConfirmarMovimiento)
                    .addComponent(jButtonEliminarMovimientoCuentaCorriente))
                .addContainerGap(29, Short.MAX_VALUE))
        );

        jDialogNombreRutaDocumentoPasoCausa.setTitle("Ingrese el nombre del documento.");
        jDialogNombreRutaDocumentoPasoCausa.setMinimumSize(new java.awt.Dimension(400, 120));
        jDialogNombreRutaDocumentoPasoCausa.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);
        jDialogNombreRutaDocumentoPasoCausa.setResizable(false);

        jLabelNombreRutaDocumento1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelNombreRutaDocumento1.setText("Nombre del Documento:");

        jButtonAceptarRutaDocumento1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAceptarRutaDocumento1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAceptarRutaDocumento1.setText("Aceptar");
        jButtonAceptarRutaDocumento1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarRutaDocumento1ActionPerformed(evt);
            }
        });

        jButtonCancelarNombreRutaDocumento1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelarNombreRutaDocumento1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarNombreRutaDocumento1.setText("Cancelar");
        jButtonCancelarNombreRutaDocumento1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarNombreRutaDocumento1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogNombreRutaDocumentoPasoCausaLayout = new javax.swing.GroupLayout(jDialogNombreRutaDocumentoPasoCausa.getContentPane());
        jDialogNombreRutaDocumentoPasoCausa.getContentPane().setLayout(jDialogNombreRutaDocumentoPasoCausaLayout);
        jDialogNombreRutaDocumentoPasoCausaLayout.setHorizontalGroup(
            jDialogNombreRutaDocumentoPasoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNombreRutaDocumentoPasoCausaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogNombreRutaDocumentoPasoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogNombreRutaDocumentoPasoCausaLayout.createSequentialGroup()
                        .addComponent(jLabelNombreRutaDocumento1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldNombreRutaDocumentoTramite1, javax.swing.GroupLayout.DEFAULT_SIZE, 228, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogNombreRutaDocumentoPasoCausaLayout.createSequentialGroup()
                        .addComponent(jButtonAceptarRutaDocumento1)
                        .addGap(53, 53, 53)
                        .addComponent(jButtonCancelarNombreRutaDocumento1)
                        .addGap(82, 82, 82))))
        );
        jDialogNombreRutaDocumentoPasoCausaLayout.setVerticalGroup(
            jDialogNombreRutaDocumentoPasoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNombreRutaDocumentoPasoCausaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogNombreRutaDocumentoPasoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNombreRutaDocumento1)
                    .addComponent(jTextFieldNombreRutaDocumentoTramite1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jDialogNombreRutaDocumentoPasoCausaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonAceptarRutaDocumento1)
                    .addComponent(jButtonCancelarNombreRutaDocumento1))
                .addContainerGap(16, Short.MAX_VALUE))
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Estudio Jurídico Deymonnaz - Moren");
        setIconImage(getIconImage());

        jTabbedPaneEstudioJuridico.setName("null\n"); // NOI18N
        jTabbedPaneEstudioJuridico.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jTabbedPaneEstudioJuridicoStateChanged(evt);
            }
        });
        jTabbedPaneEstudioJuridico.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                jTabbedPaneEstudioJuridicoComponentShown(evt);
            }
        });
        jTabbedPaneEstudioJuridico.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jTabbedPaneEstudioJuridicoPropertyChange(evt);
            }
        });

        jButtonAltaPersona.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAltaPersona.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/medianas/agregar.png"))); // NOI18N
        jButtonAltaPersona.setText("Agregar Persona");
        jButtonAltaPersona.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAltaPersonaActionPerformed(evt);
            }
        });

        jTablePersonas.setModel(this.datosPersonas);
        jTablePersonas.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTablePersonasMouseClicked(evt);
            }
        });
        jScrollPanePersonas1.setViewportView(jTablePersonas);

        jPanelBuscarVenta.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabelTelefonoBuscarPersona.setText("Teléfono:");

        jLabelDireccionBuscarPersona.setText("Dirección:");

        jLabelNombreBuscarPersona.setText("Nombre:");

        jLabelDocumentoBuscarPersona.setText("Número Documento:");

        jLabelEmailBuscarPersona.setText("Email:");

        jLabelTipoDocumentoBuscarPersona.setText("Tipo Documento:");

        jComboBoxTipoDocumentoBuscarPersona.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "", "DNI", "LC", "LE", "Pasaporte", "CUIT" }));

        jButtonBuscarPersona.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBuscarPersona.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarPersona.setText("Buscar");
        jButtonBuscarPersona.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarPersonaActionPerformed(evt);
            }
        });

        jButtonDeshacerBuscarPersona.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonDeshacerBuscarPersona.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/flechaatras.png"))); // NOI18N
        jButtonDeshacerBuscarPersona.setText("Deshacer búsqueda");
        jButtonDeshacerBuscarPersona.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeshacerBuscarPersonaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarVentaLayout = new javax.swing.GroupLayout(jPanelBuscarVenta);
        jPanelBuscarVenta.setLayout(jPanelBuscarVentaLayout);
        jPanelBuscarVentaLayout.setHorizontalGroup(
            jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarVentaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jButtonDeshacerBuscarPersona, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelBuscarVentaLayout.createSequentialGroup()
                        .addGroup(jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanelBuscarVentaLayout.createSequentialGroup()
                                    .addGap(17, 17, 17)
                                    .addComponent(jLabelTipoDocumentoBuscarPersona))
                                .addGroup(jPanelBuscarVentaLayout.createSequentialGroup()
                                    .addGap(57, 57, 57)
                                    .addComponent(jLabelNombreBuscarPersona))
                                .addComponent(jLabelDocumentoBuscarPersona))
                            .addGroup(jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabelDireccionBuscarPersona)
                                .addGroup(jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabelEmailBuscarPersona)
                                    .addComponent(jLabelTelefonoBuscarPersona))))
                        .addGap(28, 28, 28)
                        .addGroup(jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTextFieldEmailBuscarPersona, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)
                            .addComponent(jTextFieldDireccionBuscarPersona)
                            .addComponent(jTextFieldNombreBuscarPersona)
                            .addComponent(jTextFieldDocumentoBuscarPersona, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)
                            .addComponent(jComboBoxTipoDocumentoBuscarPersona, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jTextFieldTelefonoBuscarPersona)))
                    .addComponent(jButtonBuscarPersona, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelBuscarVentaLayout.setVerticalGroup(
            jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarVentaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTipoDocumentoBuscarPersona)
                    .addComponent(jComboBoxTipoDocumentoBuscarPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldDocumentoBuscarPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelDocumentoBuscarPersona))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelNombreBuscarPersona)
                    .addComponent(jTextFieldNombreBuscarPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldDireccionBuscarPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelDireccionBuscarPersona))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldTelefonoBuscarPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelTelefonoBuscarPersona))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldEmailBuscarPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelEmailBuscarPersona))
                .addGap(18, 18, 18)
                .addComponent(jButtonBuscarPersona)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonDeshacerBuscarPersona)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabelTextoListadoTramites1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelTextoListadoTramites1.setText("Listado de Personas");

        javax.swing.GroupLayout jPanelPersonasLayout = new javax.swing.GroupLayout(jPanelPersonas);
        jPanelPersonas.setLayout(jPanelPersonasLayout);
        jPanelPersonasLayout.setHorizontalGroup(
            jPanelPersonasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelPersonasLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelPersonasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelTextoListadoTramites1)
                    .addComponent(jScrollPanePersonas1, javax.swing.GroupLayout.DEFAULT_SIZE, 739, Short.MAX_VALUE))
                .addGap(18, 18, 18)
                .addGroup(jPanelPersonasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jButtonAltaPersona, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanelBuscarVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(30, 30, 30))
        );
        jPanelPersonasLayout.setVerticalGroup(
            jPanelPersonasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelPersonasLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(jLabelTextoListadoTramites1)
                .addGap(18, 18, 18)
                .addGroup(jPanelPersonasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelPersonasLayout.createSequentialGroup()
                        .addComponent(jButtonAltaPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jPanelBuscarVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jScrollPanePersonas1, javax.swing.GroupLayout.PREFERRED_SIZE, 484, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(48, 48, 48))
        );

        jTabbedPaneEstudioJuridico.addTab("Personas", jPanelPersonas);

        jLabelListadoCausas.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelListadoCausas.setText("Listado de Causas");

        jTableCausas.setModel(this.datosCausas);
        jTableCausas.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableCausasMouseClicked(evt);
            }
        });
        jScrollPaneCausas.setViewportView(jTableCausas);

        jButtonAltaCausas.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAltaCausas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/medianas/agregar.png"))); // NOI18N
        jButtonAltaCausas.setText("Agregar Causa");
        jButtonAltaCausas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAltaCausasActionPerformed(evt);
            }
        });

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabelNumeroCausa.setText("Número:");

        jLabelTipoCausa.setText("Tipo:");

        jLabelJuzgadoCausa.setText("Juzgado:");

        jLabelDescripcionCausa.setText("Descripción:");

        jLabelCaratulaCausa.setText("Carátula:");

        jLabelFechaInicioCausa.setText("Fecha de Inicio:");

        jLabel8.setText("Fecha de Cierre:");

        jButtonBuscarCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBuscarCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarCausa.setText("Buscar");
        jButtonBuscarCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarCausaActionPerformed(evt);
            }
        });

        jButtonDeshacerBusquedaCausa.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonDeshacerBusquedaCausa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/flechaatras.png"))); // NOI18N
        jButtonDeshacerBusquedaCausa.setText("Deshacer Búsqueda");
        jButtonDeshacerBusquedaCausa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeshacerBusquedaCausaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGap(22, 22, 22)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabelCaratulaCausa)
                                    .addComponent(jLabelDescripcionCausa)
                                    .addComponent(jLabelJuzgadoCausa)
                                    .addComponent(jLabelTipoCausa)
                                    .addComponent(jLabelNumeroCausa)))
                            .addComponent(jLabelFechaInicioCausa))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTextFieldNumeroBusquedaCausa)
                            .addComponent(jTextFieldDescripcionBuscarCausa)
                            .addComponent(jTextFieldCaratulaBuscarCausa)
                            .addComponent(jDateChooserInicioBuscarCausa, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jTextFieldTipoBuscarCausa)
                            .addComponent(jTextFieldJuzgadoBuscarCausa)))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jDateChooserCierreBuscarCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jButtonBuscarCausa, javax.swing.GroupLayout.DEFAULT_SIZE, 208, Short.MAX_VALUE)
                    .addComponent(jButtonDeshacerBusquedaCausa, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(20, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNumeroCausa)
                    .addComponent(jTextFieldNumeroBusquedaCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(11, 11, 11)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTipoCausa)
                    .addComponent(jTextFieldTipoBuscarCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelJuzgadoCausa)
                    .addComponent(jTextFieldJuzgadoBuscarCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelDescripcionCausa)
                    .addComponent(jTextFieldDescripcionBuscarCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(11, 11, 11)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelCaratulaCausa)
                    .addComponent(jTextFieldCaratulaBuscarCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(12, 12, 12)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jDateChooserInicioBuscarCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelFechaInicioCausa))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jDateChooserCierreBuscarCausa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE)
                .addComponent(jButtonBuscarCausa)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButtonDeshacerBusquedaCausa)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanelAdmCausasLayout = new javax.swing.GroupLayout(jPanelAdmCausas);
        jPanelAdmCausas.setLayout(jPanelAdmCausasLayout);
        jPanelAdmCausasLayout.setHorizontalGroup(
            jPanelAdmCausasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAdmCausasLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelAdmCausasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelAdmCausasLayout.createSequentialGroup()
                        .addComponent(jScrollPaneCausas, javax.swing.GroupLayout.DEFAULT_SIZE, 798, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanelAdmCausasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jButtonAltaCausas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addComponent(jLabelListadoCausas))
                .addContainerGap())
        );
        jPanelAdmCausasLayout.setVerticalGroup(
            jPanelAdmCausasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAdmCausasLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(jLabelListadoCausas)
                .addGap(18, 18, 18)
                .addGroup(jPanelAdmCausasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelAdmCausasLayout.createSequentialGroup()
                        .addComponent(jButtonAltaCausas, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addComponent(jScrollPaneCausas, javax.swing.GroupLayout.DEFAULT_SIZE, 532, Short.MAX_VALUE)))
        );

        jTabbedPaneEstudioJuridico.addTab("Causas", jPanelAdmCausas);

        jTableListadoTramites.setModel(this.datosTamites);
        jTableListadoTramites.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableListadoTramitesMouseClicked(evt);
            }
        });
        jScrollPane1.setViewportView(jTableListadoTramites);

        jLabelTextoListadoTramites.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelTextoListadoTramites.setText("Listado de Trámites");

        jPanelBuscarTramite.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabelNumeroBuscarTramite.setText("Número:");

        jLabelDescripcionBuscarTramite.setText("Descripción:");

        jButtonBuscarTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBuscarTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarTramite.setText("Buscar");
        jButtonBuscarTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarTramiteActionPerformed(evt);
            }
        });

        jButtonDeshacerBusquedaTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonDeshacerBusquedaTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/flechaatras.png"))); // NOI18N
        jButtonDeshacerBusquedaTramite.setText("Deshacer Búsqueda");
        jButtonDeshacerBusquedaTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeshacerBusquedaTramiteActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarTramiteLayout = new javax.swing.GroupLayout(jPanelBuscarTramite);
        jPanelBuscarTramite.setLayout(jPanelBuscarTramiteLayout);
        jPanelBuscarTramiteLayout.setHorizontalGroup(
            jPanelBuscarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarTramiteLayout.createSequentialGroup()
                .addGroup(jPanelBuscarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelBuscarTramiteLayout.createSequentialGroup()
                        .addGroup(jPanelBuscarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelNumeroBuscarTramite)
                            .addComponent(jLabelDescripcionBuscarTramite))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelBuscarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldNumeroBuscarTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 124, Short.MAX_VALUE)
                            .addComponent(jTextFieldDescripcionBuscarTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 124, Short.MAX_VALUE)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelBuscarTramiteLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonDeshacerBusquedaTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE))
                    .addGroup(jPanelBuscarTramiteLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonBuscarTramite, javax.swing.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelBuscarTramiteLayout.setVerticalGroup(
            jPanelBuscarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarTramiteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelBuscarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNumeroBuscarTramite)
                    .addComponent(jTextFieldNumeroBuscarTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarTramiteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelDescripcionBuscarTramite)
                    .addComponent(jTextFieldDescripcionBuscarTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jButtonBuscarTramite)
                .addGap(11, 11, 11)
                .addComponent(jButtonDeshacerBusquedaTramite)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jButtonAgregarTramite.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAgregarTramite.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/medianas/agregar.png"))); // NOI18N
        jButtonAgregarTramite.setText("Agregar Trámite");
        jButtonAgregarTramite.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAgregarTramiteActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelAdministracionTramitesLayout = new javax.swing.GroupLayout(jPanelAdministracionTramites);
        jPanelAdministracionTramites.setLayout(jPanelAdministracionTramitesLayout);
        jPanelAdministracionTramitesLayout.setHorizontalGroup(
            jPanelAdministracionTramitesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAdministracionTramitesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelAdministracionTramitesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelAdministracionTramitesLayout.createSequentialGroup()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
                        .addGap(18, 18, 18)
                        .addGroup(jPanelAdministracionTramitesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jButtonAgregarTramite, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanelBuscarTramite, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addComponent(jLabelTextoListadoTramites))
                .addContainerGap())
        );
        jPanelAdministracionTramitesLayout.setVerticalGroup(
            jPanelAdministracionTramitesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAdministracionTramitesLayout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelTextoListadoTramites)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelAdministracionTramitesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelAdministracionTramitesLayout.createSequentialGroup()
                        .addComponent(jButtonAgregarTramite, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(11, 11, 11)
                        .addComponent(jPanelBuscarTramite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 525, Short.MAX_VALUE))
                .addContainerGap())
        );

        jTabbedPaneEstudioJuridico.addTab("Trámites", jPanelAdministracionTramites);

        jTableAgenda.setModel(this.datosAgenda);
        jTableAgenda.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableAgendaMouseClicked(evt);
            }
        });
        jScrollPane3.setViewportView(jTableAgenda);

        jButtonAgregarTareaAgenda.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAgregarTareaAgenda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/agregar.png"))); // NOI18N
        jButtonAgregarTareaAgenda.setText("Agregar Tarea");
        jButtonAgregarTareaAgenda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAgregarTareaAgendaActionPerformed(evt);
            }
        });

        jPanelBuscarAgenda.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabelDescripcionBuscarAgenda.setText("Descipción:");

        jLabelLugarBuscarAgenda.setText("Lugar:");

        jLabelHoraBuscarAgenda.setText("Hora:");

        jButtonBuscarAgenda.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBuscarAgenda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarAgenda.setText("Buscar");
        jButtonBuscarAgenda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarAgendaActionPerformed(evt);
            }
        });

        jButtonDeshacerBusquedaTarea.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonDeshacerBusquedaTarea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/flechaatras.png"))); // NOI18N
        jButtonDeshacerBusquedaTarea.setText("Deshacer Búsqueda");
        jButtonDeshacerBusquedaTarea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeshacerBusquedaTareaActionPerformed(evt);
            }
        });

        jLabelNumeroBuscarAgenda.setText("Número:");

        jLabelFechaBuscarAgenda.setText("Fecha:");

        javax.swing.GroupLayout jPanelBuscarAgendaLayout = new javax.swing.GroupLayout(jPanelBuscarAgenda);
        jPanelBuscarAgenda.setLayout(jPanelBuscarAgendaLayout);
        jPanelBuscarAgendaLayout.setHorizontalGroup(
            jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarAgendaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonDeshacerBusquedaTarea, javax.swing.GroupLayout.DEFAULT_SIZE, 194, Short.MAX_VALUE)
                    .addComponent(jButtonBuscarAgenda, javax.swing.GroupLayout.DEFAULT_SIZE, 194, Short.MAX_VALUE)
                    .addGroup(jPanelBuscarAgendaLayout.createSequentialGroup()
                        .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelFechaBuscarAgenda)
                            .addComponent(jLabelDescripcionBuscarAgenda)
                            .addComponent(jLabelHoraBuscarAgenda)
                            .addComponent(jLabelLugarBuscarAgenda)
                            .addComponent(jLabelNumeroBuscarAgenda))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldLugarBuscarAgenda, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)
                            .addComponent(jTextFieldHoraBuscarAgenda, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)
                            .addComponent(jTextFieldDescripcionBuscarAgenda, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)
                            .addComponent(jTextFieldNumeroBuscarAgenda, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)
                            .addComponent(jDateChooserFechaAgenda, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE))))
                .addContainerGap())
        );
        jPanelBuscarAgendaLayout.setVerticalGroup(
            jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarAgendaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelDescripcionBuscarAgenda)
                    .addComponent(jTextFieldDescripcionBuscarAgenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(12, 12, 12)
                .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldLugarBuscarAgenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelLugarBuscarAgenda))
                .addGap(18, 18, 18)
                .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jTextFieldHoraBuscarAgenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelHoraBuscarAgenda))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNumeroBuscarAgenda)
                    .addComponent(jTextFieldNumeroBuscarAgenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabelFechaBuscarAgenda)
                    .addComponent(jDateChooserFechaAgenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE)
                .addComponent(jButtonBuscarAgenda)
                .addGap(18, 18, 18)
                .addComponent(jButtonDeshacerBusquedaTarea))
        );

        jCalendarAgenda.setMinimumSize(new java.awt.Dimension(130, 130));

        jLabelTextoAgenda.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelTextoAgenda.setText("Listado de Tareas");

        jTablePasosAgenda.setModel(this.datosPasosAgenda);
        jTablePasosAgenda.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTablePasosAgendaMouseClicked(evt);
            }
        });
        jScrollPane11.setViewportView(jTablePasosAgenda);

        jLabelListadoDePasos.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelListadoDePasos.setText("Listado de Pasos:");

        javax.swing.GroupLayout jPanelAgendaLayout = new javax.swing.GroupLayout(jPanelAgenda);
        jPanelAgenda.setLayout(jPanelAgendaLayout);
        jPanelAgendaLayout.setHorizontalGroup(
            jPanelAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAgendaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelAgendaLayout.createSequentialGroup()
                        .addGroup(jPanelAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 826, Short.MAX_VALUE)
                            .addComponent(jScrollPane11, javax.swing.GroupLayout.DEFAULT_SIZE, 826, Short.MAX_VALUE)
                            .addComponent(jLabelTextoAgenda))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButtonAgregarTareaAgenda)
                            .addComponent(jCalendarAgenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanelBuscarAgenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(jLabelListadoDePasos))
                .addContainerGap())
        );
        jPanelAgendaLayout.setVerticalGroup(
            jPanelAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAgendaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelTextoAgenda)
                .addGap(18, 18, 18)
                .addGroup(jPanelAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelAgendaLayout.createSequentialGroup()
                        .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 295, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelListadoDePasos))
                    .addGroup(jPanelAgendaLayout.createSequentialGroup()
                        .addComponent(jButtonAgregarTareaAgenda, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(2, 2, 2)
                        .addComponent(jPanelBuscarAgenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane11, javax.swing.GroupLayout.DEFAULT_SIZE, 207, Short.MAX_VALUE)
                    .addComponent(jCalendarAgenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jTabbedPaneEstudioJuridico.addTab("Agenda", jPanelAgenda);

        jTableCaja.setModel(this.datosCaja);
        jTableCaja.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableCajaMouseClicked(evt);
            }
        });
        jScrollPaneCaja.setViewportView(jTableCaja);

        jButtonAgregarMovimiento.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonAgregarMovimiento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/medianas/agregar.png"))); // NOI18N
        jButtonAgregarMovimiento.setText("Agregar Movimiento");
        jButtonAgregarMovimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAgregarMovimientoActionPerformed(evt);
            }
        });

        jLabelTextoCaja.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelTextoCaja.setText("Listado de Movimientos");

        jPanelBuscarMovimientosCaja.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabelDescripcionBuscarMovimientoCaja.setText("Descripción:");

        jLabelHaberBuscarMovimientoCaja.setText("Haber:");

        jLabelDebeBuscarMovimientoCaja.setText("Debe:");

        jLabelFechaBuscarMovimientoCaja.setText("Fecha:");

        jButtonBuscarMovimientoCaja.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonBuscarMovimientoCaja.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarMovimientoCaja.setText("Buscar");
        jButtonBuscarMovimientoCaja.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarMovimientoCajaActionPerformed(evt);
            }
        });

        jButtonDeshacerBuscarMovimientoCaja.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonDeshacerBuscarMovimientoCaja.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/flechaatras.png"))); // NOI18N
        jButtonDeshacerBuscarMovimientoCaja.setText("Deshacer Búsqueda");
        jButtonDeshacerBuscarMovimientoCaja.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeshacerBuscarMovimientoCajaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarMovimientosCajaLayout = new javax.swing.GroupLayout(jPanelBuscarMovimientosCaja);
        jPanelBuscarMovimientosCaja.setLayout(jPanelBuscarMovimientosCajaLayout);
        jPanelBuscarMovimientosCajaLayout.setHorizontalGroup(
            jPanelBuscarMovimientosCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarMovimientosCajaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelBuscarMovimientosCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jButtonDeshacerBuscarMovimientoCaja, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonBuscarMovimientoCaja, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelBuscarMovimientosCajaLayout.createSequentialGroup()
                        .addGroup(jPanelBuscarMovimientosCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelDebeBuscarMovimientoCaja)
                            .addComponent(jLabelFechaBuscarMovimientoCaja)
                            .addComponent(jLabelHaberBuscarMovimientoCaja)
                            .addComponent(jLabelDescripcionBuscarMovimientoCaja))
                        .addGap(28, 28, 28)
                        .addGroup(jPanelBuscarMovimientosCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jDateChooserFechaBuscarMovimientoCaja, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jTextFieldDescripcionBuscarMovimientoCaja, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)
                            .addComponent(jTextFieldDebeBuscarMovimientoCaja, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)
                            .addComponent(jTextFieldHaberBuscarMovimientoCaja, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(27, Short.MAX_VALUE))
        );
        jPanelBuscarMovimientosCajaLayout.setVerticalGroup(
            jPanelBuscarMovimientosCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarMovimientosCajaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelBuscarMovimientosCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabelFechaBuscarMovimientoCaja)
                    .addComponent(jDateChooserFechaBuscarMovimientoCaja, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelBuscarMovimientosCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldDebeBuscarMovimientoCaja, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelDebeBuscarMovimientoCaja))
                .addGap(18, 18, 18)
                .addGroup(jPanelBuscarMovimientosCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldHaberBuscarMovimientoCaja, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelHaberBuscarMovimientoCaja))
                .addGap(18, 18, 18)
                .addGroup(jPanelBuscarMovimientosCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelDescripcionBuscarMovimientoCaja)
                    .addComponent(jTextFieldDescripcionBuscarMovimientoCaja, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonBuscarMovimientoCaja)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonDeshacerBuscarMovimientoCaja)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabelTextoTotalDebeCaja.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelTextoTotalDebeCaja.setText("Total Debe:");

        jLabelTotalDebeMovimientosCaja.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelTotalDebeMovimientosCaja.setText("0");

        jLabelTextoTotalHaberCaja.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelTextoTotalHaberCaja.setText("Total Haber:");

        jLabelTotalHaberMovimientosCaja.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelTotalHaberMovimientosCaja.setText("0");

        jLabelTextoTotalCaja.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelTextoTotalCaja.setText("Total Caja:");

        jLabelTotalMovimientosCaja.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelTotalMovimientosCaja.setText("0");

        javax.swing.GroupLayout jPanelCajaLayout = new javax.swing.GroupLayout(jPanelCaja);
        jPanelCaja.setLayout(jPanelCajaLayout);
        jPanelCajaLayout.setHorizontalGroup(
            jPanelCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCajaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelCajaLayout.createSequentialGroup()
                        .addComponent(jScrollPaneCaja, javax.swing.GroupLayout.DEFAULT_SIZE, 727, Short.MAX_VALUE)
                        .addGap(18, 18, 18)
                        .addGroup(jPanelCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jButtonAgregarMovimiento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jPanelBuscarMovimientosCaja, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(jPanelCajaLayout.createSequentialGroup()
                                .addGroup(jPanelCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabelTextoTotalDebeCaja, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabelTextoTotalHaberCaja, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabelTextoTotalCaja, javax.swing.GroupLayout.Alignment.LEADING))
                                .addGap(47, 47, 47)
                                .addGroup(jPanelCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabelTotalMovimientosCaja)
                                    .addComponent(jLabelTotalHaberMovimientosCaja)
                                    .addComponent(jLabelTotalDebeMovimientosCaja))))
                        .addGap(65, 65, 65))
                    .addGroup(jPanelCajaLayout.createSequentialGroup()
                        .addComponent(jLabelTextoCaja)
                        .addContainerGap(922, Short.MAX_VALUE))))
        );
        jPanelCajaLayout.setVerticalGroup(
            jPanelCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCajaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelTextoCaja)
                .addGroup(jPanelCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelCajaLayout.createSequentialGroup()
                        .addGap(32, 32, 32)
                        .addComponent(jButtonAgregarMovimiento, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jPanelBuscarMovimientosCaja, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addGroup(jPanelCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelTextoTotalDebeCaja)
                            .addComponent(jLabelTotalDebeMovimientosCaja))
                        .addGap(18, 18, 18)
                        .addGroup(jPanelCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelTextoTotalHaberCaja)
                            .addComponent(jLabelTotalHaberMovimientosCaja))
                        .addGap(18, 18, 18)
                        .addGroup(jPanelCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelTextoTotalCaja)
                            .addComponent(jLabelTotalMovimientosCaja)))
                    .addGroup(jPanelCajaLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(jScrollPaneCaja, javax.swing.GroupLayout.DEFAULT_SIZE, 529, Short.MAX_VALUE)))
                .addContainerGap())
        );

        jTabbedPaneEstudioJuridico.addTab("Caja", jPanelCaja);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPaneEstudioJuridico, javax.swing.GroupLayout.DEFAULT_SIZE, 1083, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPaneEstudioJuridico, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 612, Short.MAX_VALUE)
        );

        getAccessibleContext().setAccessibleName("Estudio Jurídico");

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButtonAgregarTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAgregarTramiteActionPerformed
        this.tramite = new Tramite();
        this.tramite.setUrlDocumentosRelacionados(new ArrayList<DocumentosRelacionadosTramite>());
        this.tramite.setPaso(new ArrayList<PasoProcesal>());
        this.jButtonEliminarTramite.setVisible(false);
        this.jButtonGuardarCambiosAgregarTramite.setVisible(false);
        this.jButtonModificarAgregarTramite.setVisible(false);
        this.jButtonAceptarAgregarTramite.setVisible(true);
        this.mostrarTramite();
        this.cambiarEstadoDatosTramite(true);
        this.jDialogAgregarTramite.setTitle("Agregar Trámites");
        this.jDialogAgregarTramite.setVisible(true);
    }//GEN-LAST:event_jButtonAgregarTramiteActionPerformed

    private void jButtonCancelarAgregarTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarAgregarTramiteActionPerformed
        this.jDialogAgregarTramite.setVisible(false);
        this.actualizarPersonas();
    }//GEN-LAST:event_jButtonCancelarAgregarTramiteActionPerformed

    private void jButtonBuscarClienteAgregarTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarClienteAgregarTramiteActionPerformed
        this.jComboBoxTipoDocumentoBuscarClienteTramite.setSelectedIndex(0);
        this.jTextFieldDocumentoBuscarClienteTramite.setText("");
        this.jTextFieldNombreBuscarClienteTramite.setText("");
        this.jTextFieldDireccionBuscarClienteTramite.setText("");
        this.jTextFieldTelefonoBuscarClienteTramite.setText("");
        this.jTextFieldEmailBuscarClienteTramite.setText("");
        this.actualizarCliente();
        this.jDialogBuscarClienteTramite.setVisible(true);
        this.jButtonCrearDocumentosRelacionadosAgregarTramite.setEnabled(true);

    }//GEN-LAST:event_jButtonBuscarClienteAgregarTramiteActionPerformed

    private void jButtonCancelarAgregarTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarAgregarTareaActionPerformed
        this.jDialogAgregarTarea.setVisible(false);
        this.actualizarPersonas();
    }//GEN-LAST:event_jButtonCancelarAgregarTareaActionPerformed
    /**
     * Este metodo permite agregar una nueva tarea
     * @param evt 
     */
    private void jButtonAgregarTareaAgendaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAgregarTareaAgendaActionPerformed
        this.inicializarTarea();
        this.jDialogAgregarTarea.setTitle("Agregar Tarea");
        this.jDialogAgregarTarea.setVisible(true);
    }//GEN-LAST:event_jButtonAgregarTareaAgendaActionPerformed

    private void jButtonNoEliminarTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNoEliminarTareaActionPerformed
        this.jDialogEliminarTarea.setVisible(false);
    }//GEN-LAST:event_jButtonNoEliminarTareaActionPerformed

    private void jButtonNoEliminarTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNoEliminarTramiteActionPerformed
        this.jDialogEliminarTramite.setVisible(false);// TODO add your handling code here:
    }//GEN-LAST:event_jButtonNoEliminarTramiteActionPerformed

    /**
     * Este método se ejecuta cuando se presiona Alta en la pestaña de 
     * Administración de Personas, muestra el dialog de Alta Persona
     * @param evt 
     */
private void jButtonAltaPersonaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAltaPersonaActionPerformed
    this.estadoInicialAltaPersona();
    this.jDialogAltaPersona.setVisible(true);
}//GEN-LAST:event_jButtonAltaPersonaActionPerformed

    /**
     * Este método se ejecuta cuando se presiona Aceptar en el dialog
     * de error, cierra el cuadro de dialogo.
     * @param evt 
     */
private void jButtonAceptarErrorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarErrorActionPerformed
    this.jDialogError.setVisible(false);
}//GEN-LAST:event_jButtonAceptarErrorActionPerformed

    /**
     * Este método se ejecuta cuando se presiona Confirmar en el dialog
     * de Alta de persona, guarda la nueva persona en la base de datos y
     * cierra el cuadro de dialogo.
     * @param evt 
     */
private void jButtonConfirmarAltaPersonaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonConfirmarAltaPersonaActionPerformed
    try {
        Persona personaGuardada = this.controlador.getPersona(this.jTextFieldNumeroDocumentoAltaPersona.getText());
        if (personaGuardada == null) {
            this.persona = new Persona();
            this.cargarPersona();
            this.controlador.guardarPersona(this.persona);
            this.jDialogAltaPersona.setVisible(false);
            this.mostrarConfirmacion("Persona agregarda correctamente");
        } else {
            if (personaGuardada.isActivo()) {
                throw new UIException("Ya existe una persona con el número de documento ingresado");
            } else {
                this.persona = personaGuardada;
                this.cargarPersona();
                this.controlador.guardarPersona(personaGuardada);
                this.jDialogAltaPersona.setVisible(false);
                this.mostrarConfirmacion("Persona activada correctamente");
            }
        }
        this.actualizarPersonas();      

    } catch (Exception ex) {
        this.mostrarError(ex);
    }
}//GEN-LAST:event_jButtonConfirmarAltaPersonaActionPerformed

    /**
     * Este método se ejecuta cuando se presiona Cancelar en el dialog
     * de Alta de persona, cierra el cuadro de dialogo.
     * @param evt 
     */
private void jButtonCancelarAltaPersonaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarAltaPersonaActionPerformed
    this.jDialogAltaPersona.setVisible(false);
}//GEN-LAST:event_jButtonCancelarAltaPersonaActionPerformed

    /**
     * Este método se ejecuta cuando se presiona Aceptar en el dialog
     * de Advertencia, cierra el cuadro de dialogo.
     * @param evt 
     */
private void jButtonAceptarAdvertenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarAdvertenciaActionPerformed
    this.jDialogAdvertencia.setVisible(false);
}//GEN-LAST:event_jButtonAceptarAdvertenciaActionPerformed

    /**
     * Este método se ejecuta cuando se presiona No en el dialog
     * de Baja de persona, cierra el cuadro de dialogo
     * @param evt 
     */
private void jButtonNoBajaPersonaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNoBajaPersonaActionPerformed
    this.jDialogBajaPersona.setVisible(false);
}//GEN-LAST:event_jButtonNoBajaPersonaActionPerformed

    /**
     * Este método se ejecuta cuando se presiona Si en el dialog
     * de Baja de persona, desactiva la persona y cierra el cuadro de dialogo
     * @param evt 
     */
private void jButtonSiBajaPersonaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSiBajaPersonaActionPerformed
    this.controlador.desactivarPersona(this.persona);
    this.jDialogBajaPersona.setVisible(false);
    this.jDialogConsultaPersona.setVisible(false);
    this.mostrarConfirmacion("Persona eliminada correctamente.");
    this.actualizarPersonas();
}//GEN-LAST:event_jButtonSiBajaPersonaActionPerformed

    /**
     * Este método se ejecuta cuando se presiona Ver Detalles en el dialog
     * de Detalles de Persona
     * @param evt 
     */
    /**
     * Este método se ejecuta cuando se presiona Ver Detalles en el dialog
     * de Detalles de Persona
     * @param evt 
     */
    /**
     * Este método se ejecuta cuando se presiona Modificar Datos en el dialog
     * de Detalles de Persona, habilita los campos de la persona para ser
     * modificados
     * @param evt 
     */
private void jButtonModificarDetallesPersonaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonModificarDetallesPersonaActionPerformed
    this.cambiarEstadoDatosPersona(true);
}//GEN-LAST:event_jButtonModificarDetallesPersonaActionPerformed

    /**
     * Este método se ejecuta cuando se presiona Guardar Cambios en el dialog
     * de Detalles de Persona, guarda todos los cambios realizados en los campos
     * de la persona en la base de datos y cierra el dialog
     * @param evt 
     */
private void jButtonGuardarDetallesPersonaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonGuardarDetallesPersonaActionPerformed
    try {
        Persona personaGuardada = this.controlador.getPersona(this.jTextFieldNroDocDetallesPersona.getText());
        if (personaGuardada == null || personaGuardada.getId() == this.persona.getId()) {
            this.cargarPersona2();
            this.controlador.guardarPersona(this.persona);
            this.actualizarPersonas();
            this.jDialogConsultaPersona.setVisible(false);
            this.mostrarConfirmacion("Los cambios se han guardado correctamente.");
        } else {
            throw new UIException("Ya existe una persona con el número de documento ingresado.");
        }
    } catch (Exception ex) {
        this.mostrarError(ex);
    }
}//GEN-LAST:event_jButtonGuardarDetallesPersonaActionPerformed

    /**
     * Este método se ejecuta cuando se presiona Cancelar en el dialog
     * de Detalles de Persona, cierra el dialog
     * @param evt 
     */
private void jButtonCancelarDetallesPersonaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarDetallesPersonaActionPerformed
    this.jDialogConsultaPersona.setVisible(false);
}//GEN-LAST:event_jButtonCancelarDetallesPersonaActionPerformed

    /**
     * Este método se ejecuta cuando se presiona Agregar Movimiento en el dialog
     * de Detalles de Persona, muestra el panel de creacion o modifiacion de
     * movimiento
     * @param evt 
     */
private void jButtonAgregarMovimientoCuentaCorrienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAgregarMovimientoCuentaCorrienteActionPerformed
    this.jButtonConfirmarMovimiento.setText("Confirmar");
    this.jDateChooserFechaMovimiento.setDate(new Date());
    this.jTextFieldDebeMovimiento.setText("0");
    this.jTextFieldHaberMovimiento.setText("0");
    this.jTextAreaDescripcionMovimiento.setText("");
    this.jDialogMovimientoPersona.setTitle("Agregar Movimiento");
    this.jButtonEliminarMovimientoCuentaCorriente.setVisible(false);
    this.jDialogMovimientoPersona.setVisible(true);
}//GEN-LAST:event_jButtonAgregarMovimientoCuentaCorrienteActionPerformed

    /**
     * Este método se ejecuta cuando se presiona Modificar Movimiento en el dialog
     * de Detalles de Persona, muestra el panel de creacion o modifiacion de
     * movimiento
     * @param evt 
     */
    /**
     * Este método se ejecuta cuando se presiona Cancelar en el panel de 
     * movimiento en el dialog de Detalles de Persona, deja de mostrar
     * el panel de creacion o modifiacion de movimiento
     * @param evt 
     */
private void jButtonCancelarMovimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarMovimientoActionPerformed
    this.jDialogMovimientoPersona.setVisible(false);
}//GEN-LAST:event_jButtonCancelarMovimientoActionPerformed

    /**
     * Este método se ejecuta cuando se presiona Confirmar en el panel de 
     * creacion o modifiacion de movimiento en el dialog de Detalles de Persona, 
     * deja de mostrar el panel y guarda un nuevo movimiento o los cambios
     * realizados en el movimiento que se estaba modificando
     * @param evt 
     */
private void jButtonConfirmarMovimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonConfirmarMovimientoActionPerformed
    try {
        if (this.jButtonConfirmarMovimiento.getText().equals("Confirmar")) {
            this.movimiento = new Movimiento();
            this.movimiento.setPersona(this.persona);
            if (this.persona.getMovimientos() == null) {
                this.persona.setMovimientos(new ArrayList<Movimiento>());
            }
            this.persona.getMovimientos().add(this.movimiento);
        }
        this.cargarMovimiento();
        this.controlador.guardarMovimiento(this.movimiento);
        this.actualizarMovimientos();
        this.jDialogMovimientoPersona.setVisible(false);
        if (this.jButtonConfirmarMovimiento.getText().equals("Confirmar")) {
            this.mostrarConfirmacion("Movimiento almacenado correctamente.");
        } else {
            this.mostrarConfirmacion("Movimiento modificado correctamente.");
        }
    } catch (UIException ex) {
        this.mostrarError(ex);
    }
}//GEN-LAST:event_jButtonConfirmarMovimientoActionPerformed

    /**
     * Este método se ejecuta cuando se presiona Eliminar Movimiento en el dialog
     * de Detalles de Persona, muestra el dialog de consulta de eliminación o el
     * de advertencia en caso de que  no se encuntre seleccionado ninguna fila
     * @param evt 
     */
private void jButtonEliminarMovimientoCuentaCorrienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarMovimientoCuentaCorrienteActionPerformed
    this.jDialogEliminarMovimiento.setVisible(true);
}//GEN-LAST:event_jButtonEliminarMovimientoCuentaCorrienteActionPerformed

    /**
     * Este método se ejecuta cuando se presiona el Si en el dialog Eliminar
     * Movimiento, borra el movimiento de la base de datos y cierra el dialog
     * @param evt 
     */
private void jButtonSiEliminarMovimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSiEliminarMovimientoActionPerformed
    this.controlador.eliminarMovimiento(this.movimiento);
    this.controlador.refresh(this.persona);
    this.jDialogEliminarMovimiento.setVisible(false);
    this.jDialogMovimientoPersona.setVisible(false);
    this.actualizarMovimientos();
    this.mostrarConfirmacion("Movimiento eliminado correctamente.");
}//GEN-LAST:event_jButtonSiEliminarMovimientoActionPerformed

    /**
     * Este método se ejecuta cuando se presiona el No en el dialog Eliminar
     * Movimiento, cierra el dialog
     * @param evt 
     */
private void jButtonNoEliminarMovimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNoEliminarMovimientoActionPerformed
    this.jDialogEliminarMovimiento.setVisible(false);
}//GEN-LAST:event_jButtonNoEliminarMovimientoActionPerformed

    private void jButtonAceptarAgregarTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarAgregarTramiteActionPerformed
        try {
            if (jDateChooserFechaInicioAgregarTramite.getDate() == null) {
                this.mostrarAdvertencia("Debe ingresar la fecha de inicio.");
            } else {
                if (!(this.jDateChooserFechaFinAgregarTramite.getDate() == null) && jDateChooserFechaFinAgregarTramite.getDate().before(jDateChooserFechaInicioAgregarTramite.getDate())) {
                    this.mostrarAdvertencia("Debe ingresar un fecha de fin posterior a la fecha de inicio.");

                } else if ((jTextFieldApoderadoAgregarTramite.getText().equals("")) | (jTextFieldClienteAgregarTramite.getText().equals(""))) {
                    this.mostrarAdvertencia("Debe ingresar un Abogado y un Cliente");
                } else {
                    this.guardarTramite();
                    this.actualizarTramite();
                    this.jDialogAgregarTramite.setVisible(false);
                    this.mostrarConfirmacion("Tramite almacenado correctamente");
                }
            }
        } catch (Exception ex) {
            this.mostrarError(ex);
        }

    }//GEN-LAST:event_jButtonAceptarAgregarTramiteActionPerformed

    private void jButtonAgregarDocumentosRelacionadosAgregarTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAgregarDocumentosRelacionadosAgregarTramiteActionPerformed
        this.agregarDocuemtosRelacionados(datosRutaTramites, jTableDocumentosRelacionadosTramites, this.tramite.getUrlDocumentosRelacionados());
    }//GEN-LAST:event_jButtonAgregarDocumentosRelacionadosAgregarTramiteActionPerformed

    private void jButtonBuscarApoderadoAgregarTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarApoderadoAgregarTramiteActionPerformed
        this.actualizarApoderado();
        this.jTextFieldDocumentoBuscarApoderadoTramite.setText("");
        this.jTextFieldNombreBuscarApoderadoTramite.setText("");
        this.jTextFieldDireccionBuscarApoderadoTramite.setText("");
        this.jTextFieldTelefonoBuscarApoderadoTramite.setText("");
        this.jTextFieldEmailBuscarApoderadoTramite.setText("");
        this.jComboBoxTipoDocumentoBuscarApoderadoTramite.setSelectedIndex(0);
        this.jDialogBuscarApoderadoTramite.setVisible(true);

    }//GEN-LAST:event_jButtonBuscarApoderadoAgregarTramiteActionPerformed
    /**
     * Este metodo permite eliminar una tramite, eliminando tamb todos sus 
     * documentos relacionados
     * @param evt 
     */
    private void jButtonSiEliminarTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSiEliminarTramiteActionPerformed
        this.tramite = this.datosTamites.getElementAt(this.jTableListadoTramites.getSelectedRow());
        Iterator<DocumentosRelacionadosTramite> it = tramite.getUrlDocumentosRelacionados().iterator();
        while (it.hasNext()) {
            DocumentosRelacionadosTramite docRelacionados = it.next();
            this.controlador.eliminarElementosRelacionados(docRelacionados);
        }
        Iterator<PasoProcesal> it1 = tramite.getPaso().iterator();
        while (it1.hasNext()) {
            PasoProcesal paso = it1.next();
            Iterator<DocumentosRelacionadosTramite> it2 = paso.getUrlDocumentosRelacionadosPaso().iterator();
            while (it2.hasNext()) {
                DocumentosRelacionadosTramite docRelacionados = it2.next();
                this.controlador.eliminarElementosRelacionados(docRelacionados);
            }
            this.controlador.eliminarPasoProcesal(paso);
        }
        this.controlador.eliminarTramite(tramite);
        this.jDialogAgregarTramite.setVisible(false);
        this.jDialogEliminarTramite.setVisible(false);
        this.actualizarTramite();
        this.mostrarConfirmacion("Tramite eliminado correctamente.");

    }//GEN-LAST:event_jButtonSiEliminarTramiteActionPerformed

    /**
     * Este método se ejecuta cuando se cambia en el dialog de alta de persona
     * si es o no abogado, muestra o deja de mostrar el campo de numero de 
     * matricula
     * @param evt 
     */
private void jComboBoxAbogadoAltaPersonaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBoxAbogadoAltaPersonaItemStateChanged
    if (this.jComboBoxAbogadoAltaPersona.getSelectedItem().equals("Si")) {
        this.jLabelNroMatriculaAltaPersona.setVisible(true);
        this.jTextFieldNroMatriculaAltaPersona.setVisible(true);
    } else {
        this.jLabelNroMatriculaAltaPersona.setVisible(false);
        this.jTextFieldNroMatriculaAltaPersona.setVisible(false);
    }
}//GEN-LAST:event_jComboBoxAbogadoAltaPersonaItemStateChanged

    /**
     * Este método se ejecuta cuando se cambia en el dialog de alta de persona
     * si es una persona fisica o jurídica, muestra o deja de mostrar los campos
     * que corresponden a abogado y para la persona juridica se setea el cuit como
     * documento por defecto
     * @param evt 
     */
private void jComboBoxTipoPersonaAltaPersonaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBoxTipoPersonaAltaPersonaItemStateChanged
    if (this.jComboBoxTipoPersonaAltaPersona.getSelectedItem().equals("Persona Fisica")) {
        this.jLabelNombreAltaPersona.setText("Nombre y Apellido");
        this.jComboBoxTipoDocumentoAltaPersona.removeItem("CUIT");
        this.jComboBoxTipoDocumentoAltaPersona.setSelectedItem("DNI");
        this.jComboBoxTipoDocumentoAltaPersona.setEnabled(true);
        this.jComboBoxAbogadoAltaPersona.setVisible(true);
        this.jLabelAbogadoAltaPersona.setVisible(true);
    } else {
        this.jLabelNombreAltaPersona.setText("Nombre");
        this.jComboBoxTipoDocumentoAltaPersona.addItem("CUIT");
        this.jComboBoxTipoDocumentoAltaPersona.setSelectedItem("CUIT");
        this.jComboBoxTipoDocumentoAltaPersona.setEnabled(false);
        this.jComboBoxAbogadoAltaPersona.setSelectedIndex(0);
        this.jComboBoxAbogadoAltaPersona.setVisible(false);
        this.jLabelAbogadoAltaPersona.setVisible(false);
    }
}//GEN-LAST:event_jComboBoxTipoPersonaAltaPersonaItemStateChanged

    /**
     * Este método se ejecuta cuando se cambia en el dialog de detalles de 
     * persona si es o no abogado, muestra o deja de mostrar el campo de numero 
     * de matricula
     * @param evt 
     */
private void jComboBoxAbogadoDetallesPersonaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBoxAbogadoDetallesPersonaItemStateChanged
    if (this.jComboBoxAbogadoDetallesPersona.getSelectedItem().equals("Si")) {
        this.jLabelNroMatriculaDetallesPersona.setVisible(true);
        this.jTextFieldNroMatriculaDetallesPersona.setVisible(true);
    } else {
        this.jLabelNroMatriculaDetallesPersona.setVisible(false);
        this.jTextFieldNroMatriculaDetallesPersona.setVisible(false);
    }
}//GEN-LAST:event_jComboBoxAbogadoDetallesPersonaItemStateChanged

    /**
     * Este método se ejecuta cuando se cambia en el dialog de detalles de persona
     * si es una persona fisica o jurídica, muestra o deja de mostrar los campos
     * que corresponden a abogado y para la persona juridica se setea el cuit como
     * documento por defecto
     * @param evt 
     */
private void jComboBoxTipoDetallesPersonaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBoxTipoDetallesPersonaItemStateChanged
    if (this.jComboBoxTipoDetallesPersona.getSelectedItem().equals("Persona Fisica")) {
        this.jLabelNombreDetallesPersona.setText("Nombre y Apellido");
        this.jComboBoxTipoDocDetallesPersona.removeItem("CUIT");
        this.jComboBoxTipoDocDetallesPersona.setSelectedItem("DNI");
        this.jComboBoxTipoDocDetallesPersona.setEnabled(true);
        this.jComboBoxAbogadoDetallesPersona.setVisible(true);
        this.jLabelAbogadoDetallesPersona.setVisible(true);
    } else {
        this.jLabelNombreDetallesPersona.setText("Nombre");
        this.jComboBoxTipoDocDetallesPersona.addItem("CUIT");
        this.jComboBoxTipoDocDetallesPersona.setSelectedItem("CUIT");
        this.jComboBoxTipoDocDetallesPersona.setEnabled(false);
        this.jComboBoxAbogadoDetallesPersona.setSelectedIndex(0);
        this.jComboBoxAbogadoDetallesPersona.setVisible(false);
        this.jLabelAbogadoDetallesPersona.setVisible(false);
    }
}//GEN-LAST:event_jComboBoxTipoDetallesPersonaItemStateChanged

    /**
     * Este método se ejecuta cuando se presiona Aceptar en el dialog
     * de Confirmacion, cierra el cuadro de dialogo.
     * @param evt 
     */
private void jButtonAceptarConfirmacionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarConfirmacionActionPerformed
    this.jDialogConfirmacion.setVisible(false);
}//GEN-LAST:event_jButtonAceptarConfirmacionActionPerformed

    /**
     * Si cambia el tipo de documento seleccionado en panel de busqueda 
     * de las personas se realiza la búsqueda en la base de datos
     * @param evt 
     */
private void jButtonAgregarMovimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAgregarMovimientoActionPerformed
    this.jDateChooserFechaMovimiento2.setDate(new Date());
    this.jTextFieldDebeMovimiento2.setText("0");
    this.jTextFieldHaberMovimiento2.setText("0");
    this.jTextAreaDescripcionMovimiento2.setText("");
    this.jDialogAgregarMovimiento.setVisible(true);
}//GEN-LAST:event_jButtonAgregarMovimientoActionPerformed

private void jButtonAceptarAgregarMovActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarAgregarMovActionPerformed
    try {
        this.movimiento = new Movimiento();
        this.cargarMovimiento2();
        this.controlador.guardarMovimiento(this.movimiento);
        this.actualizarCaja();
        this.jDialogAgregarMovimiento.setVisible(false);
        this.mostrarConfirmacion("Movimiento almacenado correctamente.");


    } catch (UIException ex) {
        this.mostrarError(ex);
}//GEN-LAST:event_jButtonAceptarAgregarMovActionPerformed
    }

private void jButtonCancelarAgregarMovActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarAgregarMovActionPerformed
    jDialogAgregarMovimiento.setVisible(false);// TODO add your handling code here:
}//GEN-LAST:event_jButtonCancelarAgregarMovActionPerformed

private void jButtonAltaCausasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAltaCausasActionPerformed
    this.borrarDatosCausa();
    this.causa = new Causa();
    this.causa.setPasoProcesals(new ArrayList<PasoProcesal>());
    this.datosPasoProcesal.setData(this.causa.getPasoProcesals());
    this.jTextFieldIngreseTipo.setEnabled(false);      
    this.jDialogAltaCausa.setVisible(true);
}//GEN-LAST:event_jButtonAltaCausasActionPerformed
    /**
     * este metodo permite seleccionar una persona con el fin de mostrar su nombre
     * en el jdialog de agregar tramite
     * @param evt 
     */
    private void jTableBuscarApoderadoTramiteMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableBuscarApoderadoTramiteMouseClicked
        this.jDialogBuscarApoderadoTramite.setVisible(false);
        this.tramite.setApoderado(this.datosPersonas.getElementAt(this.jTableBuscarApoderadoTramite.getSelectedRow()));
        this.jTextFieldApoderadoAgregarTramite.setText(tramite.getApoderado().getNombre());
    }//GEN-LAST:event_jTableBuscarApoderadoTramiteMouseClicked

    private void jTableBuscarClienteTramiteMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableBuscarClienteTramiteMouseClicked
        this.jDialogBuscarClienteTramite.setVisible(false);
        this.tramite.setCliente(this.datosPersonas.getElementAt(this.jTableBuscarClienteTramite.getSelectedRow()));
        this.jTextFieldClienteAgregarTramite.setText(tramite.getCliente().getNombre());
    }//GEN-LAST:event_jTableBuscarClienteTramiteMouseClicked
    /**
     * Este metodo se ejecuta cuando se hace click en la talba de tramites
     * equivale a los metodos ver detalles habituales
     * @param evt 
     */
    private void jTableListadoTramitesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableListadoTramitesMouseClicked
        this.tramite = (this.datosTamites.getElementAt(this.jTableListadoTramites.getSelectedRow()));
        Conexiones.getInstance().refresh(this.tramite);
        this.jButtonModificarAgregarTramite.setVisible(true);
        this.jButtonEliminarTramite.setVisible(true);
        this.jButtonGuardarCambiosAgregarTramite.setVisible(false);
        this.jButtonAceptarAgregarTramite.setVisible(false);
        this.mostrarTramite();
        this.cambiarEstadoDatosTramite(false);
        this.jDialogAgregarTramite.setTitle("Modificar Trámites");
        this.jDialogAgregarTramite.setVisible(true);
    }//GEN-LAST:event_jTableListadoTramitesMouseClicked
    /**
     * Este metodo permite abrir y guardar un nuevo word
     * tambien guarda la direccion url del documento creado
     * en la tabla de datosRutaTramites
     * @param evt 
     */
    private void jButtonCrearDocumentosRelacionadosAgregarTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCrearDocumentosRelacionadosAgregarTramiteActionPerformed
        this.jDialogNombreRutaDocumento.setVisible(true);
    }//GEN-LAST:event_jButtonCrearDocumentosRelacionadosAgregarTramiteActionPerformed
    /**
     * Este metodo permite almacenar una nueva tarea
     * @param evt 
     */
private void jButtonAceptarAgregarTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarAgregarTareaActionPerformed
    try {
        this.cargarTarea();
        if (this.jTextFieldApoderadoTarea.getText().equals("")) {
            this.mostrarAdvertencia("Por favor complete el abogado.");
        } else {
            if (this.jDateChooserFechaRealizacionTarea.getDate() == (null)) {
                this.mostrarAdvertencia("Por favor complete la fecha.");
            } else {
                if (this.tarea.getFecha().compareTo(new java.sql.Date((new java.util.Date()).getTime())) < 0 && !this.tarea.getFecha().toString().equals(new java.sql.Date((new java.util.Date()).getTime()).toString())) {
                    this.mostrarAdvertencia("La fecha ingresada es menor que la fecha actual.");
                } else {

                    this.controlador.guardarTarea(this.tarea);
                    Iterator<DocumentosRelacionadosTramite> it1 = this.listaDocumentosRelacionadosTramiteTarea.iterator();
                    while (it1.hasNext()) {
                        DocumentosRelacionadosTramite docRelacionados = it1.next();
                        docRelacionados.setTarea(tarea);
                        this.controlador.guardarDocumentosRelacionadosTramite(docRelacionados);
                    }
                    this.actualizarTarea();
                    this.jDialogAgregarTarea.setVisible(false);
                    this.mostrarConfirmacion("Tarea almacenada correctamente.");

                }
            }
        }
    } catch (Exception ex) {
        this.mostrarError(ex);
    }
}//GEN-LAST:event_jButtonAceptarAgregarTareaActionPerformed

private void jTextFieldJuzgadoCausasBusquedaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldJuzgadoCausasBusquedaActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jTextFieldJuzgadoCausasBusquedaActionPerformed

    private void jButtonModificarAgregarTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonModificarAgregarTramiteActionPerformed
        this.jButtonGuardarCambiosAgregarTramite.setVisible(true);
        this.jButtonModificarAgregarTramite.setVisible(false);
        this.cambiarEstadoDatosTramite(true);
    }//GEN-LAST:event_jButtonModificarAgregarTramiteActionPerformed
    /**
     * Este metodo se ejecuta cuando se desea guardar los cambios realizados
     * de un tramite
     * @param evt 
     */
    private void jButtonGuardarCambiosAgregarTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonGuardarCambiosAgregarTramiteActionPerformed
        try {
            if (jDateChooserFechaInicioAgregarTramite.getDate() == null) {
                this.mostrarAdvertencia("Debe ingresar la fecha de inicio.");
            } else {
                if (!(this.jDateChooserFechaFinAgregarTramite.getDate() == null) && jDateChooserFechaFinAgregarTramite.getDate().before(jDateChooserFechaInicioAgregarTramite.getDate())) {
                    this.mostrarAdvertencia("Debe ingresar un fecha de fin posterior a la fecha de inicio.");
                } else {
                    this.guardarTramite();
                    this.actualizarTramite();
                    this.jDialogAgregarTramite.setVisible(false);
                    this.mostrarConfirmacion("Cambios guardados correctamente");

                }
            }
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }//GEN-LAST:event_jButtonGuardarCambiosAgregarTramiteActionPerformed

    private void jButtonEliminarTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarTramiteActionPerformed
        this.jDialogEliminarTramite.setVisible(true);
    }//GEN-LAST:event_jButtonEliminarTramiteActionPerformed

    /**
     * Si se cambia la opción elgida en el campo tipo de documento del panel de 
     * busqueda de las personas se realiza la búsqueda en la base de datos
     * @param evt 
     */
private void jTableTramitesDetallesPersonaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableTramitesDetallesPersonaMouseClicked
    this.tramite = (this.datosTramitesReducidos.getElementAt(this.jTableTramitesDetallesPersona.getSelectedRow()));
    this.jDialogConsultaPersona.setVisible(false);
    Conexiones.getInstance().refresh(this.tramite);
    this.jButtonModificarAgregarTramite.setVisible(true);
    this.jButtonEliminarTramite.setVisible(true);
    this.jButtonGuardarCambiosAgregarTramite.setVisible(false);
    this.jButtonAceptarAgregarTramite.setVisible(false);
    this.mostrarTramite();
    this.cambiarEstadoDatosTramite(false);
    this.jDialogAgregarTramite.setVisible(true);
}//GEN-LAST:event_jTableTramitesDetallesPersonaMouseClicked

    private void actualizarCaja() {
        try {
            ArrayList<Movimiento> movs = this.controlador.listarMovimientos();
            this.datosCaja.setData(movs);
            this.jTableCaja.updateUI();
            String[] totales = this.controlador.getTotalesMovimientosCaja(Fecha.convertirASQL(this.jDateChooserFechaBuscarMovimientoCaja.getDate()), this.jTextFieldDebeBuscarMovimientoCaja.getText(), this.jTextFieldHaberBuscarMovimientoCaja.getText(), this.jTextFieldDescripcionBuscarMovimientoCaja.getText());
            this.jLabelTotalDebeMovimientosCaja.setText("$ " + totales[0]);
            this.jLabelTotalHaberMovimientosCaja.setText("$ " + totales[1]);
            this.jLabelTotalMovimientosCaja.setText("$ " + totales[2]);
            if (Double.parseDouble(totales[2]) < 0) {
                this.jLabelTotalMovimientosCaja.setForeground(Color.RED);
            } else {
                this.jLabelTotalMovimientosCaja.setForeground(Color.BLACK);
            }
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    private void jTableAgendaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableAgendaMouseClicked
        this.tarea = (this.datosAgenda.getElementAt(this.jTableAgenda.getSelectedRow()));
        this.inhabilitarTarea();
        this.jButtonModificarTarea.setVisible(true);
        this.jButtonEliminarTarea.setVisible(true);
        this.jDialogAgregarTarea.setTitle("Modificar Tarea");
        this.mostrarTarea(this.tarea);

    }//GEN-LAST:event_jTableAgendaMouseClicked
    /**
     * setea el jTestFielfApoderadoTarea con la persona selaccionada de la tabla
     * @param evt 
     */
    private void jTableBuscarApoderadoTareaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableBuscarApoderadoTareaMouseClicked
        this.jDialogBuscarApoderadoTarea.setVisible(false);
        this.encargadoTarea = (this.datosPersonas.getElementAt(this.jTableBuscarApoderadoTarea.getSelectedRow()));
        this.jTextFieldApoderadoTarea.setText(encargadoTarea.getNombre());
        this.jButtonCrearDocumentosRelacionadosTarea.setEnabled(true);
        this.actualizarPersonas();
    }//GEN-LAST:event_jTableBuscarApoderadoTareaMouseClicked
    /**
     * setea el encargado de la tarea en el jTextFiel
     * @param evt 
     */
    private void jButtonBuscarApoderadoTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarApoderadoTareaActionPerformed
        this.jComboBoxTipoDocumentoBuscarApoderadoTarea.setSelectedIndex(0);
        this.jTextFieldDocumentoBuscarApoderadoTarea.setText("");
        this.jTextFieldNombreBuscarApoderadoTarea.setText("");
        this.jTextFieldDireccionBuscarApoderadoTarea.setText("");
        this.jTextFieldTelefonoBuscarApoderadoTarea.setText("");
        this.jTextFieldEmailBuscarApoderadoTarea.setText("");
        this.encargadoTarea = new Persona();
        this.actualizarEncargadoTarea();
        this.jDialogBuscarApoderadoTarea.setVisible(true);
    }//GEN-LAST:event_jButtonBuscarApoderadoTareaActionPerformed
    /**
     * Este metodo habilita todos los campos
     * del jdialog tarea para que puedan ser modificados
     * @param evt 
     */
    private void jButtonModificarTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonModificarTareaActionPerformed

        this.jButtonAceptarAgregarTarea.setVisible(false);
        this.jButtonGuardarModificacionTarea.setVisible(true);
        this.jButtonBuscarApoderadoTarea.setEnabled(true);
        this.jButtonagregarDocumentosRelacionadosTrarea.setEnabled(true);
        this.jButtonCrearDocumentosRelacionadosTarea.setEnabled(false);
        this.jTextFieldNumeroAgregarTarea.setEnabled(true);
        this.jDateChooserFechaRealizacionTarea.setEnabled(true);
        this.jTextAreaDescripcionTarea.setEnabled(true);
        this.jTextFieldLugarAgregarTarea.setEnabled(true);
        this.jTextFieldApoderadoTarea.setEnabled(true);
        this.jSpinFieldHoraTarea.setEnabled(true);
        this.jSpinFieldMinutosTarea.setEnabled(true);
        this.jButtonCrearDocumentosRelacionadosTarea.setEnabled(true);
        this.jButtonEliminarDocumentoTarea.setEnabled(true);
        this.encargadoTarea = this.tarea.getEncargado();

    }//GEN-LAST:event_jButtonModificarTareaActionPerformed
    /**
     * Este metodo guarda todos los cambios realizados en una tarea
     * @param evt 
     */
    private void jButtonGuardarModificacionTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonGuardarModificacionTareaActionPerformed
        try {
            this.modificarTarea();
            this.controlador.guardarTarea(tarea);
            Iterator<DocumentosRelacionadosTramite> it = this.listaDocumentosRelacionadosTramiteTarea.iterator();
            while (it.hasNext()) {
                DocumentosRelacionadosTramite docRelacionados = it.next();
                docRelacionados.setTarea(tarea);
                this.controlador.guardarDocumentosRelacionadosTramite(docRelacionados);
            }
            this.actualizarTarea();
            this.jDialogAgregarTarea.setVisible(false);
            this.mostrarConfirmacion("Cambios guardados correctamente.");

        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }//GEN-LAST:event_jButtonGuardarModificacionTareaActionPerformed
    /**
     * Este metodo permite eliminar una terea determinada, eliminando
     * tambien sus documentos relacionados
     * @param evt 
     */
    private void jButtonSiEliminarTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSiEliminarTareaActionPerformed
        this.tarea = this.datosAgenda.getElementAt(this.jTableAgenda.getSelectedRow());
        Iterator<DocumentosRelacionadosTramite> it = tarea.getUrlDocumentosRelacionados().iterator();
        while (it.hasNext()) {
            DocumentosRelacionadosTramite docRelacionados = it.next();
            this.controlador.eliminarElementosRelacionados(docRelacionados);
        }
        this.controlador.eliminarTarea(tarea);
        this.jDialogAgregarTarea.setVisible(false);
        this.jDialogEliminarTarea.setVisible(false);
        this.actualizarTarea();
        this.mostrarConfirmacion("Tarea eliminada correctamente.");

    }//GEN-LAST:event_jButtonSiEliminarTareaActionPerformed
    /**
     * hace visible el jdialog eliminar tarea
     * @param evt 
     */
    private void jButtonEliminarTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarTareaActionPerformed
        this.jDialogEliminarTarea.setVisible(true);
    }//GEN-LAST:event_jButtonEliminarTareaActionPerformed

    private void jButtonBuscarTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarTramiteActionPerformed
        this.buscarTramite();
    }//GEN-LAST:event_jButtonBuscarTramiteActionPerformed
    /**
     * Borra los textfield del panel buscar
     * @param evt 
     */
    private void jButtonDeshacerBusquedaTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeshacerBusquedaTramiteActionPerformed
        this.jTextFieldDescripcionBuscarTramite.setText("");
        this.jTextFieldNumeroBuscarTramite.setText("");
        this.actualizarTramite();
    }//GEN-LAST:event_jButtonDeshacerBusquedaTramiteActionPerformed
    /**
     * busca tareas 
     * @param evt 
     */
    private void jButtonBuscarAgendaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarAgendaActionPerformed
        this.buscarTarea();
        this.buscarPasosAgenda();

    }//GEN-LAST:event_jButtonBuscarAgendaActionPerformed

    private void jButtonDeshacerBusquedaTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeshacerBusquedaTareaActionPerformed
        this.actualizarTarea();
        this.actualizarPasosProcesales();
        this.jTextFieldDescripcionBuscarAgenda.setText("");
        this.jTextFieldLugarBuscarAgenda.setText("");
        this.jTextFieldHoraBuscarAgenda.setText("");
        this.jTextFieldNumeroBuscarAgenda.setText("");
        this.jDateChooserFechaAgenda.setDate(null);

    }//GEN-LAST:event_jButtonDeshacerBusquedaTareaActionPerformed

    private void jButtonBuscarApoderadoTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarApoderadoTramiteActionPerformed
        this.buscarApoderado();
    }//GEN-LAST:event_jButtonBuscarApoderadoTramiteActionPerformed
    /**
     * limpia todos los jtextfield y lista nuevamente todas las personas
     * @param evt 
     */
    private void jButtonDeshacerBusquedaApoderadoTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeshacerBusquedaApoderadoTramiteActionPerformed
        this.jTextFieldDocumentoBuscarApoderadoTramite.setText("");
        this.jTextFieldNombreBuscarApoderadoTramite.setText("");
        this.jTextFieldDireccionBuscarApoderadoTramite.setText("");
        this.jTextFieldTelefonoBuscarApoderadoTramite.setText("");
        this.jTextFieldEmailBuscarApoderadoTramite.setText("");
        this.jComboBoxTipoDocumentoBuscarApoderadoTramite.setSelectedIndex(0);
        this.actualizarApoderado();
    }//GEN-LAST:event_jButtonDeshacerBusquedaApoderadoTramiteActionPerformed
    /**
     * este metodo se invoca cuando se presiona el boton buscar del
     * jdialog buscar cliente
     * @param evt 
     */
    private void jButtonBuscarClienteTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarClienteTramiteActionPerformed
        this.buscarClientes();
    }//GEN-LAST:event_jButtonBuscarClienteTramiteActionPerformed
    /**
     * borra todos los campos del jdialog buscar cliente tramite
     * @param evt 
     */
    private void jButtonDeshacerBusquedaClienteTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeshacerBusquedaClienteTramiteActionPerformed
        this.jComboBoxTipoDocumentoBuscarClienteTramite.setSelectedIndex(0);
        this.jTextFieldDocumentoBuscarClienteTramite.setText("");
        this.jTextFieldNombreBuscarClienteTramite.setText("");
        this.jTextFieldDireccionBuscarClienteTramite.setText("");
        this.jTextFieldTelefonoBuscarClienteTramite.setText("");
        this.jTextFieldEmailBuscarClienteTramite.setText("");
        this.actualizarCliente();
    }//GEN-LAST:event_jButtonDeshacerBusquedaClienteTramiteActionPerformed
    /**
     * invoca al metodo buscar encargado tarea
     * @param evt 
     */
    private void jButtonApoderadoTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonApoderadoTareaActionPerformed
        this.buscarEncargadoTerea();
    }//GEN-LAST:event_jButtonApoderadoTareaActionPerformed

    private void jButtonSiEliminarMovimiento2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSiEliminarMovimiento2ActionPerformed
        this.movimiento = this.datosCaja.getElementAt(this.jTableCaja.getSelectedRow());
        this.controlador.eliminarMovimiento(this.movimiento);
        this.jDialogEliminarMovimiento2.setVisible(false);
        this.jDialogModificarMovimiento.setVisible(false);
        this.actualizarCaja();
        this.mostrarConfirmacion("Movimiento eliminado correctamente.");         // TODO add your handling code here:
    }//GEN-LAST:event_jButtonSiEliminarMovimiento2ActionPerformed

    private void jButtonNoEliminarMovimiento2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNoEliminarMovimiento2ActionPerformed
        this.jDialogEliminarMovimiento2.setVisible(false); // TODO add your handling code here:
    }//GEN-LAST:event_jButtonNoEliminarMovimiento2ActionPerformed

    private void jButtonAceptarModificarMovActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarModificarMovActionPerformed
        try {
            this.cargarMovimiento3();
            this.controlador.guardarMovimiento(this.movimiento);
            this.actualizarCaja();
            this.jDialogModificarMovimiento.setVisible(false);
            this.mostrarConfirmacion("Movimiento modificado correctamente.");
    }//GEN-LAST:event_jButtonAceptarModificarMovActionPerformed
catch (UIException ex) {
            this.mostrarError(ex);
        }
    }
    private void jButtonCancelarModificarMovActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarModificarMovActionPerformed
        this.jDialogModificarMovimiento.setVisible(false);// TODO add your handling code here:
    }//GEN-LAST:event_jButtonCancelarModificarMovActionPerformed

    private void jButtonConfirmarAltaCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonConfirmarAltaCausaActionPerformed
        try {
           //para que hace estos...?? por si quiere modificar la causa?? no seria mejor hacer otro boton...para que
            // quede mas entendible?
            if (this.controlador.buscarCausa(this.jTextFieldNumAltaCausa.getText()) == null) {
                if (jDateChooserFechaInicioAltaCausa.getDate() == null) {
                    this.mostrarAdvertencia("Debe ingresar una fecha de inicio.");
                } else {
                    this.cargarCausa();
                    this.guardarPasosCausa();         
                    this.actualizarCausa();
                    this.jDialogAltaCausa.setVisible(false);
                    this.mostrarConfirmacion("Causa almacenada correctamente.");
                }
            } else {
                this.mostrarAdvertencia("Ya existe una causa con ese número.");
            }

        } catch (Exception ex) {
            this.mostrarError(ex);
        }                // TODO add your handling code here:
    }//GEN-LAST:event_jButtonConfirmarAltaCausaActionPerformed

    private void jButtonDeshacerBusquedaApoderadoTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeshacerBusquedaApoderadoTareaActionPerformed
        this.jComboBoxTipoDocumentoBuscarApoderadoTarea.setSelectedIndex(0);
        this.jTextFieldDocumentoBuscarApoderadoTarea.setText("");
        this.jTextFieldNombreBuscarApoderadoTarea.setText("");
        this.jTextFieldDireccionBuscarApoderadoTarea.setText("");
        this.jTextFieldTelefonoBuscarApoderadoTarea.setText("");
        this.jTextFieldEmailBuscarApoderadoTarea.setText("");
        this.actualizarEncargadoTarea();
    }//GEN-LAST:event_jButtonDeshacerBusquedaApoderadoTareaActionPerformed

    private void jButtonAceptarAlertaTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarAlertaTareaActionPerformed
        this.jDialogAlertaAgenda.setVisible(false);
    }//GEN-LAST:event_jButtonAceptarAlertaTareaActionPerformed

    private void jTableTablaAlertaTareasMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableTablaAlertaTareasMouseClicked
        this.tarea = (this.datosAgendaAlerta.getElementAt(this.jTableTablaAlertaTareas.getSelectedRow()));
        this.inhabilitarTarea();
        this.mostrarTarea(this.tarea);

    }//GEN-LAST:event_jTableTablaAlertaTareasMouseClicked

    private void jButtonAbogadoApoderadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAbogadoApoderadoActionPerformed
        this.actualizarApoderadoCausa();
        this.jDialogBuscarApoderadoCausa.setVisible(true);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonAbogadoApoderadoActionPerformed

    private void jButtonAbogadoContraparteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAbogadoContraparteActionPerformed
        this.actualizarAbogadoContraparteCausa();
        this.jDialogBuscarAbogadoContraparteCausa.setVisible(true);
    }//GEN-LAST:event_jButtonAbogadoContraparteActionPerformed

    private void jButtonClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonClienteActionPerformed
        this.actualizarPersonasCausa(jTableBuscarClienteCausa);
        this.jDialogBuscarClienteCausa.setVisible(true);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonClienteActionPerformed

    private void jButtonContraparteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonContraparteActionPerformed
        this.actualizarPersonasCausa(jTableBuscarContraparteCausa);
        this.jDialogBuscarContraparteCausa.setVisible(true); // TODO add your handling code here:
    }//GEN-LAST:event_jButtonContraparteActionPerformed

    private void jTableBuscarApoderadoCausaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableBuscarApoderadoCausaMouseClicked
        this.jDialogBuscarApoderadoCausa.setVisible(false);
        this.apoderadoCausa = new Persona();
        this.apoderadoCausa = (this.datosPersonas.getElementAt(this.jTableBuscarApoderadoCausa.getSelectedRow()));
        this.jTextFieldAbogadoApoderado.setText(apoderadoCausa.getNombre());
        this.jTextFieldAbogadoApoderadoConsultaCausa.setText(apoderadoCausa.getNombre());
    }//GEN-LAST:event_jTableBuscarApoderadoCausaMouseClicked

    private void jButtonBuscarApoderadoCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarApoderadoCausaActionPerformed
        this.buscarAbogadosCausa();
    }//GEN-LAST:event_jButtonBuscarApoderadoCausaActionPerformed

    private void jButtonDeshacerBusquedaApoderadoCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeshacerBusquedaApoderadoCausaActionPerformed
        this.actualizarApoderadoCausa();
    }//GEN-LAST:event_jButtonDeshacerBusquedaApoderadoCausaActionPerformed

    private void jTableBuscarClienteCausaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableBuscarClienteCausaMouseClicked
        this.jDialogBuscarClienteCausa.setVisible(false);
        this.clienteCausa = new Persona();
        this.clienteCausa = (this.datosPersonas.getElementAt(this.jTableBuscarClienteCausa.getSelectedRow()));
        this.jTextFieldCliente.setText(clienteCausa.getNombre());
        this.jTextFieldClienteConsultaCausa.setText(clienteCausa.getNombre());

    }//GEN-LAST:event_jTableBuscarClienteCausaMouseClicked

    private void jButtonBuscarClienteCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarClienteCausaActionPerformed
        this.buscarClienteCausa();
    }//GEN-LAST:event_jButtonBuscarClienteCausaActionPerformed

    private void jButtonDeshacerBusquedaClienteCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeshacerBusquedaClienteCausaActionPerformed
        this.actualizarPersonasCausa(jTableBuscarClienteCausa);
    }//GEN-LAST:event_jButtonDeshacerBusquedaClienteCausaActionPerformed

    private void jTextFieldNombreBuscarApoderadoTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldNombreBuscarApoderadoTramiteActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextFieldNombreBuscarApoderadoTramiteActionPerformed

    private void jButtonCancelarAltaCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarAltaCausaActionPerformed
        this.jDialogAltaCausa.setVisible(false);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonCancelarAltaCausaActionPerformed

    private void jTableBuscarContraparteCausaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableBuscarContraparteCausaMouseClicked
        this.jDialogBuscarContraparteCausa.setVisible(false);
        this.contraparteCausa = new Persona();
        this.contraparteCausa = (this.datosPersonas.getElementAt(this.jTableBuscarContraparteCausa.getSelectedRow()));
        this.jTextFieldContraparte.setText(contraparteCausa.getNombre()); // TODO add your handling code here:
        this.jTextFieldContraparteConsultaCausa.setText(contraparteCausa.getNombre());

    }//GEN-LAST:event_jTableBuscarContraparteCausaMouseClicked

    private void jButtonBuscarContraparteCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarContraparteCausaActionPerformed
        this.buscarContraparteCausa();        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonBuscarContraparteCausaActionPerformed

    private void jButtonDeshacerBusquedaContraparteCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeshacerBusquedaContraparteCausaActionPerformed
        this.actualizarPersonasCausa(jTableBuscarContraparteCausa);
    }//GEN-LAST:event_jButtonDeshacerBusquedaContraparteCausaActionPerformed

    private void jTableBuscarAbogadoContraparteCausaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableBuscarAbogadoContraparteCausaMouseClicked
        this.jDialogBuscarAbogadoContraparteCausa.setVisible(false);
        this.contraparteCausa1 = new Persona();
        this.contraparteCausa1 = (this.datosPersonas.getElementAt(this.jTableBuscarAbogadoContraparteCausa.getSelectedRow()));
        this.jTextFieldAbogadoContraparte.setText(contraparteCausa1.getNombre());
        this.jTextFieldAbogadoContraparteConsultaCausa.setText(contraparteCausa1.getNombre());
    }//GEN-LAST:event_jTableBuscarAbogadoContraparteCausaMouseClicked

    private void jButtonBuscarContraparteCausa1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarContraparteCausa1ActionPerformed
        this.buscarAbogadosContraparteCausa();
    }//GEN-LAST:event_jButtonBuscarContraparteCausa1ActionPerformed

    private void jButtonDeshacerBusquedaContraparteCausa1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeshacerBusquedaContraparteCausa1ActionPerformed
        this.actualizarAbogadoContraparteCausa();
    }//GEN-LAST:event_jButtonDeshacerBusquedaContraparteCausa1ActionPerformed

    private void jTableBuscarAbogadoContraparteCausaMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableBuscarAbogadoContraparteCausaMouseEntered
        // TODO add your handling code here:
    }//GEN-LAST:event_jTableBuscarAbogadoContraparteCausaMouseEntered

    private void jButtonConfirmarConsultaCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonConfirmarConsultaCausaActionPerformed
        if (this.jButtonConfirmarConsultaCausa.getText().equalsIgnoreCase("Modificar Causa")) {
            this.jTextFieldNumConsultaCausa.setEnabled(true);
            this.jTextFieldCaratulaConsultaCausa.setEnabled(true);
            this.jTextFieldAbogadoApoderadoConsultaCausa.setEnabled(true);
            this.jTextFieldAbogadoContraparteConsultaCausa.setEnabled(true);
            this.jTextFieldClienteConsultaCausa.setEnabled(true);
            this.jTextFieldContraparteConsultaCausa.setEnabled(true);
            this.jDateChooserFechaInicioConsultaCausa.setEnabled(true);
            this.jDateChooserFechaCierreConsultaCausa.setEnabled(true);
            this.jComboBoxTipoConsultaCausa.setEnabled(true);
            this.jTextFieldJuzgadoConsultaCausa.setEnabled(true);
            this.jTextAreaDescripcionConsultaCausa.setEnabled(true);
            this.jButtonAbogadoApoderadoConsultaCausa.setEnabled(true);
            this.jButtonAbogadoContraparteConsultaCausa.setEnabled(true);
            this.jButtonClienteConsultaCausa.setEnabled(true);
            this.jButtonContraparteConsultaCausa.setEnabled(true);
            this.jButtonConsultaCausaAgregarPaso.setEnabled(true);
            this.jTextFieldTipoCausaOtro.setEnabled(true);
            this.jTableConsultaCausaPasos.setEnabled(true);
            this.jButtonConfirmarConsultaCausa.setText("Guardar Cambios");
        } else {
            Causa objeto = this.controlador.buscarCausa(this.jTextFieldNumConsultaCausa.getText());
            if (objeto != null && objeto.getId() != this.causa.getId()) {
                this.mostrarAdvertencia("Ya existe una causa con ese número");
            } else {
                if (jDateChooserFechaInicioConsultaCausa.getDate() == null) {
                    this.mostrarAdvertencia("Debe ingresar una fecha de inicio");
                } else {
                    this.cargarCausa2();
                    this.guardarPasosCausa();
                    this.actualizarCausa();
                    this.jDialogConsultaCausa.setVisible(false);
                    this.mostrarConfirmacion("Los cambios se han guardado correctamente.");                    
                }
            }
        }
    }//GEN-LAST:event_jButtonConfirmarConsultaCausaActionPerformed

    private void jButtonCancelarConsultaCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarConsultaCausaActionPerformed
        this.actualizarCausa();
        this.jDialogConsultaCausa.setVisible(false);

    }//GEN-LAST:event_jButtonCancelarConsultaCausaActionPerformed

    private void jButtonAbogadoApoderadoConsultaCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAbogadoApoderadoConsultaCausaActionPerformed
        this.actualizarApoderadoCausa();
        this.jDialogBuscarApoderadoCausa.setVisible(true);// TODO add your handling code here:
    }//GEN-LAST:event_jButtonAbogadoApoderadoConsultaCausaActionPerformed

    private void jButtonAbogadoContraparteConsultaCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAbogadoContraparteConsultaCausaActionPerformed
        this.actualizarAbogadoContraparteCausa();
        this.jDialogBuscarAbogadoContraparteCausa.setVisible(true);
    }//GEN-LAST:event_jButtonAbogadoContraparteConsultaCausaActionPerformed

    private void jButtonClienteConsultaCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonClienteConsultaCausaActionPerformed
        this.actualizarPersonasCausa(jTableBuscarClienteCausa);
        this.jDialogBuscarClienteCausa.setVisible(true);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonClienteConsultaCausaActionPerformed

    private void jButtonContraparteConsultaCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonContraparteConsultaCausaActionPerformed
        this.actualizarPersonasCausa(jTableBuscarContraparteCausa);
        this.jDialogBuscarContraparteCausa.setVisible(true);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonContraparteConsultaCausaActionPerformed

    private void jButtonConsultaCausaAgregarPasoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonConsultaCausaAgregarPasoActionPerformed
        this.pasoProcesal = new PasoProcesal();
        this.tablaPasos = jTableConsultaCausaPasos;
        this.pasoProcesal.setUrlDocumentosRelacionadosPaso(new ArrayList<DocumentosRelacionadosTramite>());
        jButtonModificarDatosPaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/guardar.png")));
        this.jButtonModificarDatosPaso.setText("Guardar Nuevo Paso");
        this.jDialogConsultaPasoProcesal.setTitle("Agregar Paso Procesal");
        this.jDateChooserConsultarPasoFechaRealizacion.setEnabled(true);
        this.jDateChooserConsultarPasoFechaVencimiento.setEnabled(true);
        this.jTextAreaConsultarPasoDescripcion.setEnabled(true);
        this.jButtonAgregarDocumentoPaso1.setEnabled(true);
        this.jButtonCrearDocumentoPaso1.setEnabled(true);
        this.jButtonEliminarDocumentosPAso1.setEnabled(true);
        this.mostrarPaso();
        this.jDialogConsultaPasoProcesal.setVisible(true);
    }//GEN-LAST:event_jButtonConsultaCausaAgregarPasoActionPerformed

    /**
     * Este método se ejecuta cuando se presiona sobre la tabla de causas
     * en la ventana de consulta de persona, muestra los detalles de la causa
     * @param evt 
     */
private void jTableCausasDetallesPersonaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableCausasDetallesPersonaMouseClicked
    this.causa = this.datosCausasReducidos.getElementAt(this.jTableCausasDetallesPersona.getSelectedRow());
    this.jDialogConsultaPersona.setVisible(false);
    Conexiones.getInstance().refresh(this.causa);
    this.mostrarCausa();
    this.jDialogConsultaCausa.setVisible(true);
}//GEN-LAST:event_jTableCausasDetallesPersonaMouseClicked

    private void jButtonCancelarNuevoPasoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarNuevoPasoActionPerformed
        this.jDialogAgregarPasoProcesal.setVisible(false);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonCancelarNuevoPasoActionPerformed

    private void jButtonCrearDocumentosRelacionadosTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCrearDocumentosRelacionadosTareaActionPerformed
        this.jDialogNombreRutaDocumentoTarea.setVisible(true);
    }//GEN-LAST:event_jButtonCrearDocumentosRelacionadosTareaActionPerformed

    private void jButtonCancelarEliminarCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarEliminarCausaActionPerformed
        this.jDialogConfirmacionBajaCausa.setVisible(false);
    }//GEN-LAST:event_jButtonCancelarEliminarCausaActionPerformed

    private void jButtonAceptarEliminarCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarEliminarCausaActionPerformed
        this.causa = this.datosCausas.getElementAt(this.jTableCausas.getSelectedRow());
        this.controlador.eliminarCausa(this.causa);
        this.actualizarCausa();
        this.jDialogConfirmacionBajaCausa.setVisible(false);
        this.jDialogConsultaCausa.setVisible(false);
        this.mostrarConfirmacion("Causa eliminada correctamente");
    }//GEN-LAST:event_jButtonAceptarEliminarCausaActionPerformed

    private void jButtonEliminarDocumentoRelacionadoTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarDocumentoRelacionadoTramiteActionPerformed
        if (this.jTableDocumentosRelacionadosTramites.getSelectedRow() == -1) {
            this.mostrarAdvertencia("Debe seleccionar el documentos que desea eliminar");
        } else {
            this.jDialogEliminarDocumentoRelacionadosTramite.setVisible(true);
        }

    }//GEN-LAST:event_jButtonEliminarDocumentoRelacionadoTramiteActionPerformed

    private void jButtonEliminarDocumentoRelacionadoTramiteNOActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarDocumentoRelacionadoTramiteNOActionPerformed
        this.jDialogEliminarDocumentoRelacionadosTramite.setVisible(false);
    }//GEN-LAST:event_jButtonEliminarDocumentoRelacionadoTramiteNOActionPerformed

    private void jButtonEliminarDocumentoRelacionadoTramiteSIActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarDocumentoRelacionadoTramiteSIActionPerformed
        this.jDialogEliminarDocumentoRelacionadosTramite.setVisible(false);
        this.eliminarDocuemntosRelacionados(datosRutaTramites, jTableDocumentosRelacionadosTramites);


    }//GEN-LAST:event_jButtonEliminarDocumentoRelacionadoTramiteSIActionPerformed

    private void jButtonAbrirDocumentoTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAbrirDocumentoTramiteActionPerformed
        if (this.jTableDocumentosRelacionadosTramites.getSelectedRow() == -1) {
            this.mostrarAdvertencia("Debe seleccionar el documento que desea ABRIR");
        } else {
            this.abrirDocumentoRelacionado(jTableDocumentosRelacionadosTramites, this.datosRutaTramites);
        }
    }//GEN-LAST:event_jButtonAbrirDocumentoTramiteActionPerformed

    private void jButtonAbrirDocumentoTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAbrirDocumentoTareaActionPerformed
        if (this.jTableDocumentosRelacionadosTarea.getSelectedRow() == -1) {
            this.mostrarAdvertencia("Debe seleccionar el documento que desea ABRIR");
        } else {
            this.abrirDocumentoRelacionado(jTableDocumentosRelacionadosTarea, this.datosRutaTarea);
        }
    }//GEN-LAST:event_jButtonAbrirDocumentoTareaActionPerformed

    private void jButtonEliminarDocumentoTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarDocumentoTareaActionPerformed
        if (this.jTableDocumentosRelacionadosTarea.getSelectedRow() == -1) {
            this.mostrarAdvertencia("Debe seleccionar el documentos que desea eliminar");
        } else {
            this.jDialogEliminarDocumentosRelacionadosTarea.setVisible(true);
        }

    }//GEN-LAST:event_jButtonEliminarDocumentoTareaActionPerformed

    private void jButtonEliminarDocumentoTareaNOActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarDocumentoTareaNOActionPerformed
        this.jDialogEliminarDocumentosRelacionadosTarea.setVisible(false);
    }//GEN-LAST:event_jButtonEliminarDocumentoTareaNOActionPerformed

    private void jButtonEliminarDocuemntoTareaSIActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarDocuemntoTareaSIActionPerformed
        this.jDialogEliminarDocumentosRelacionadosTarea.setVisible(false);
        this.eliminarDocuemntosRelacionados(datosRutaTarea, jTableDocumentosRelacionadosTarea);
    }//GEN-LAST:event_jButtonEliminarDocuemntoTareaSIActionPerformed

    private void jButtonCancelarNombreRutaDocumentoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarNombreRutaDocumentoActionPerformed
        this.jDialogNombreRutaDocumento.setVisible(false);
    }//GEN-LAST:event_jButtonCancelarNombreRutaDocumentoActionPerformed

    private void jButtonAceptarRutaDocumentoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarRutaDocumentoActionPerformed
        this.crearDocumentosRelacionados(this.jTextFieldClienteAgregarTramite, this.jTextFieldNombreRutaDocumentoTramite, this.jTextFieldNumeroAgregarTramite, this.datosRutaTramites, this.jTableDocumentosRelacionadosTramites, this.listaDocumentosRelacionadosTramiteTarea,this.jDialogNombreRutaDocumento);
    }//GEN-LAST:event_jButtonAceptarRutaDocumentoActionPerformed

    private void jButtonAgregarDocumentoPasoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAgregarDocumentoPasoActionPerformed
        this.agregarDocuemtosRelacionados(datosRutaPaso, jTableDocumentosRelacionadosPaso, this.pasoTramite.getUrlDocumentosRelacionadosPaso());
    }//GEN-LAST:event_jButtonAgregarDocumentoPasoActionPerformed

    private void jButtonAbrirDocumentosPasoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAbrirDocumentosPasoActionPerformed
        if (this.jTableDocumentosRelacionadosPaso.getSelectedRow() == -1) {
            this.mostrarAdvertencia("Debe seleccionar el documento que desea ABRIR");
        } else {
            this.abrirDocumentoRelacionado(jTableDocumentosRelacionadosPaso, datosRutaPaso);
        }
    }//GEN-LAST:event_jButtonAbrirDocumentosPasoActionPerformed

    private void jButtonCrearDocumentoPasoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCrearDocumentoPasoActionPerformed
        this.jDialogNombreRutasDocumentosPaso.setVisible(true);
    }//GEN-LAST:event_jButtonCrearDocumentoPasoActionPerformed

    private void jButtonCancelarNombreRutaTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarNombreRutaTareaActionPerformed
        this.jDialogNombreRutaDocumentoTarea.setVisible(false);
    }//GEN-LAST:event_jButtonCancelarNombreRutaTareaActionPerformed

    private void jButtonAceptarRutaDocumentoTareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarRutaDocumentoTareaActionPerformed
        this.crearDocumentosRelacionados(this.jTextFieldApoderadoTarea, this.jTextFieldNombreRutaDocumentoTarea, this.jTextFieldNumeroAgregarTarea, datosRutaTarea, jTableDocumentosRelacionadosTarea, this.listaDocumentosRelacionadosTramiteTarea,this.jDialogNombreRutaDocumentoTarea);
    }//GEN-LAST:event_jButtonAceptarRutaDocumentoTareaActionPerformed

    private void jButtonCancelarNombreRutaPasoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarNombreRutaPasoActionPerformed
        this.jDialogNombreRutasDocumentosPaso.setVisible(false);
    }//GEN-LAST:event_jButtonCancelarNombreRutaPasoActionPerformed

    private void jButtonAceptarRutaDocumentoPasoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarRutaDocumentoPasoActionPerformed
        this.crearDocumentosRelacionados(this.jTextFieldClienteAgregarTramite, this.jTextFieldNombreRutaDocumentoPaso, this.jTextFieldNumeroAgregarTramite, this.datosRutaPaso, this.jTableDocumentosRelacionadosPaso, this.pasoTramite.getUrlDocumentosRelacionadosPaso(),this.jDialogNombreRutasDocumentosPaso);
    }//GEN-LAST:event_jButtonAceptarRutaDocumentoPasoActionPerformed

    private void jButtonEliminarDocuemntoPasoSIActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarDocuemntoPasoSIActionPerformed
        this.jDialogEliminarDocumentoRelacionadoPasoTramite.setVisible(false);
        this.eliminarDocuemntosRelacionados(datosRutaPaso, jTableDocumentosRelacionadosPaso);
    }//GEN-LAST:event_jButtonEliminarDocuemntoPasoSIActionPerformed

    private void jButtonEliminarDocumentoPasoNOActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarDocumentoPasoNOActionPerformed
        this.jDialogEliminarDocumentoRelacionadoPasoTramite.setVisible(true);
    }//GEN-LAST:event_jButtonEliminarDocumentoPasoNOActionPerformed

    private void jButtonEliminarDocumentosPAsoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarDocumentosPAsoActionPerformed
        if (this.jTableDocumentosRelacionadosPaso.getSelectedRow() == -1) {
            this.mostrarAdvertencia("Debe seleccionar el documento que desea eliminar");
        } else {
            this.jDialogEliminarDocumentoRelacionadoPasoTramite.setVisible(true);
        }
    }//GEN-LAST:event_jButtonEliminarDocumentosPAsoActionPerformed

    private void jTableCausasMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableCausasMouseClicked
        this.causa = this.datosCausas.getElementAt(this.jTableCausas.getSelectedRow());
        Conexiones.getInstance().refresh(this.causa);
        this.mostrarCausa();
        this.jDialogConsultaCausa.setVisible(true);
    }//GEN-LAST:event_jTableCausasMouseClicked

    private void jButtonNoEliminarPasoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNoEliminarPasoActionPerformed
        this.jDialogConfirmacionEliminarPaso.setVisible(false);
    }//GEN-LAST:event_jButtonNoEliminarPasoActionPerformed

    private void jButtonSiEliminarPasoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSiEliminarPasoActionPerformed
        this.eliminarPasoProcesalPaso(this.pasoProcesal);
        this.jDialogConfirmacionEliminarPaso.setVisible(false);
        this.jDialogConsultaPasoProcesal.setVisible(false);
        this.actualizarPasos(this.tablaPasos);
    }//GEN-LAST:event_jButtonSiEliminarPasoActionPerformed

    private void jButtonModificarDatosPasoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonModificarDatosPasoActionPerformed
        if ("Modificar Datos".equals(this.jButtonModificarDatosPaso.getText())) {
            this.jButtonModificarDatosPaso.setText("Guardar Cambios");
            jButtonModificarDatosPaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/guardar.png")));
            this.jDateChooserConsultarPasoFechaRealizacion.setEnabled(true);
            this.jDateChooserConsultarPasoFechaVencimiento.setEnabled(true);
            this.jTextAreaConsultarPasoDescripcion.setEnabled(true);
            this.jButtonAgregarDocumentoPaso1.setEnabled(true);
            this.jButtonCrearDocumentoPaso1.setEnabled(true);
            this.jButtonEliminarDocumentosPAso1.setEnabled(true);
        } else {
            if ("Guardar Cambios".equals(this.jButtonModificarDatosPaso.getText())) {
                this.pasoProcesal.setFechaRealizacion(Fecha.convertirASQL(this.jDateChooserConsultarPasoFechaRealizacion.getDate()));
                this.pasoProcesal.setFechaVencimiento(Fecha.convertirASQL(this.jDateChooserConsultarPasoFechaVencimiento.getDate()));
                this.pasoProcesal.setDescripcion(this.jTextAreaConsultarPasoDescripcion.getText());
                this.jDialogConsultaPasoProcesal.setVisible(false);
                this.actualizarPasos(jTableConsultaCausaPasos);
            } else {
                this.cargarPaso();
                this.causa.getPasoProcesals().add(this.pasoProcesal);
                this.actualizarPasos(this.tablaPasos);
                this.jDialogConsultaPasoProcesal.setVisible(false);
                this.mostrarConfirmacion("Paso procesal agregado correctamente.");
            }


        }
    }//GEN-LAST:event_jButtonModificarDatosPasoActionPerformed

    private void jButtonAgregarDocumentoPaso1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAgregarDocumentoPaso1ActionPerformed
        this.agregarDocuemtosRelacionados(datosRutaPaso, jTableDocumentosRelacionadosPaso1, this.pasoProcesal.getUrlDocumentosRelacionadosPaso());
    }//GEN-LAST:event_jButtonAgregarDocumentoPaso1ActionPerformed

    private void jButtonAbrirDocumentosPaso1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAbrirDocumentosPaso1ActionPerformed
        if (this.jTableDocumentosRelacionadosPaso1.getSelectedRow() == -1) {
            this.mostrarAdvertencia("Debe seleccionar el documento que desea abrir.");
        } else {
            this.abrirDocumentoRelacionado(jTableDocumentosRelacionadosPaso1, this.datosRutaPaso);
        }
    }//GEN-LAST:event_jButtonAbrirDocumentosPaso1ActionPerformed

    private void jButtonCrearDocumentoPaso1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCrearDocumentoPaso1ActionPerformed
        this.jDialogNombreRutaDocumentoPasoCausa.setVisible(true);
    }//GEN-LAST:event_jButtonCrearDocumentoPaso1ActionPerformed

    private void jButtonEliminarDocumentosPAso1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarDocumentosPAso1ActionPerformed
        this.jDialogEliminarDocumentoRelacionadosPaso.setVisible(true);
    }//GEN-LAST:event_jButtonEliminarDocumentosPAso1ActionPerformed

    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        this.jDialogConfirmacionEliminarPaso.setVisible(true);
    }//GEN-LAST:event_jButton5ActionPerformed

    private void jTableConsultaCausaPasosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableConsultaCausaPasosMouseClicked
        if (this.jTableConsultaCausaPasos.getSelectedRow() != -1) {
            this.pasoProcesal = this.datosPasoProcesal.getElementAt(this.jTableConsultaCausaPasos.getSelectedRow());
            Conexiones.getInstance().refresh(this.pasoProcesal);
            this.jDialogConsultaPasoProcesal.setTitle("Datos del paso procesal");
            this.jDateChooserConsultarPasoFechaRealizacion.setEnabled(false);
            this.jDateChooserConsultarPasoFechaVencimiento.setEnabled(false);
            this.jTextAreaConsultarPasoDescripcion.setEnabled(false);
            this.jButtonAgregarDocumentoPaso1.setEnabled(false);
            this.jButtonCrearDocumentoPaso1.setEnabled(false);
            this.jButtonEliminarDocumentosPAso1.setEnabled(false);
            jButtonModificarDatosPaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/modificar.png")));
            this.jButtonModificarDatosPaso.setText("Modificar Datos");
            this.mostrarPaso();
            this.jTableDocumentosRelacionadosPaso1.updateUI();
            this.jDialogConsultaPasoProcesal.setVisible(true);
        }
    }//GEN-LAST:event_jTableConsultaCausaPasosMouseClicked

    private void jButtonBajaCausasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBajaCausasActionPerformed
        this.jDialogConfirmacionBajaCausa.setVisible(true);
    }//GEN-LAST:event_jButtonBajaCausasActionPerformed

    private void jButtonAgregarPasosTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAgregarPasosTramiteActionPerformed
        this.pasoTramite = new PasoProcesal();
        this.pasoTramite.setUrlDocumentosRelacionadosPaso(new ArrayList<DocumentosRelacionadosTramite>());
        this.jButtonAgregarPasoATramite.setVisible(true);
        this.jButtonModificarPasoTramite.setVisible(false);
        this.jButtonGuardarCambiosPasosTramite.setVisible(false);
        this.jButtonEliminarPasoTramite.setVisible(false);
        this.cambiarEstadoDatosPasoTramite(true);
        this.mostrarPasoTramite();
        this.jDialogAgregarPasoProcesal.setTitle("Agregar Paso a TRAMITE");
        this.jDialogAgregarPasoProcesal.setVisible(true);
    }//GEN-LAST:event_jButtonAgregarPasosTramiteActionPerformed

    private void jButtonAgregarPasoATramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAgregarPasoATramiteActionPerformed
        try {
            this.cargarPasoTramite();
            this.tramite.getPaso().add(this.pasoTramite);
            this.actualizarPasosTramite();
            this.jDialogAgregarPasoProcesal.setVisible(false);
            this.mostrarConfirmacion("Paso procesal agregado correctamente");
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }//GEN-LAST:event_jButtonAgregarPasoATramiteActionPerformed

    private void jButtonEliminarPasoTramiteSIActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarPasoTramiteSIActionPerformed
        this.jDialogEliminarPasoTramite.setVisible(false);
        Iterator<DocumentosRelacionadosTramite> it = pasoTramite.getUrlDocumentosRelacionadosPaso().iterator();
        while (it.hasNext()) {
            DocumentosRelacionadosTramite docRelacionados = it.next();
            this.controlador.eliminarElementosRelacionados(docRelacionados);
        }
        this.controlador.eliminarPasoProcesal(pasoTramite);
        Conexiones.getInstance().refresh(this.tramite);
        this.actualizarPasosTramite();
        this.jDialogAgregarPasoProcesal.setVisible(false);
       
    }//GEN-LAST:event_jButtonEliminarPasoTramiteSIActionPerformed

    private void jButtonEliminarPasoTrtamiteNOActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarPasoTrtamiteNOActionPerformed
        this.jDialogEliminarPasoTramite.setVisible(false);
    }//GEN-LAST:event_jButtonEliminarPasoTrtamiteNOActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        this.jDialogConsultaPasoProcesal.setVisible(false);
    }//GEN-LAST:event_jButton4ActionPerformed

    private void jComboBoxTipoAltaCausaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBoxTipoAltaCausaItemStateChanged
        if ("Otro".equals(this.jComboBoxTipoAltaCausa.getSelectedItem().toString())) {
            this.jTextFieldIngreseTipo.setEnabled(true);
        } else {
            this.jTextFieldIngreseTipo.setEnabled(false);
        }
    }//GEN-LAST:event_jComboBoxTipoAltaCausaItemStateChanged

    private void jComboBoxTipoAltaCausaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jComboBoxTipoAltaCausaMouseClicked
        if ("Otro".equals(this.jComboBoxTipoAltaCausa.getSelectedItem().toString())) {
            this.jTextFieldIngreseTipo.setVisible(true);
        }

    }//GEN-LAST:event_jComboBoxTipoAltaCausaMouseClicked

    private void jButtonBuscarCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarCausaActionPerformed
        this.buscarCausa();
    }//GEN-LAST:event_jButtonBuscarCausaActionPerformed

    private void jButtonDeshacerBusquedaCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeshacerBusquedaCausaActionPerformed
        this.jTextFieldNumeroBusquedaCausa.setText("");
        this.jTextFieldTipoBuscarCausa.setText("");
        this.jTextFieldJuzgadoBuscarCausa.setText("");
        this.jTextFieldDescripcionBuscarCausa.setText("");
        this.jTextFieldCaratulaBuscarCausa.setText("");
        this.jDateChooserInicioBuscarCausa.setDate(null);
        this.jDateChooserCierreBuscarCausa.setDate(null);
        this.actualizarCausa();
    }//GEN-LAST:event_jButtonDeshacerBusquedaCausaActionPerformed

    private void jButtonEliminarDocumentoRelacionadoTramiteSI1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarDocumentoRelacionadoTramiteSI1ActionPerformed
        this.eliminarDocuemntosRelacionados(datosRutaPaso, jTableDocumentosRelacionadosPaso1);
        this.jDialogEliminarDocumentoRelacionadosPaso.setVisible(false);
    }//GEN-LAST:event_jButtonEliminarDocumentoRelacionadoTramiteSI1ActionPerformed

    private void jButtonEliminarDocumentoRelacionadoTramiteNO1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarDocumentoRelacionadoTramiteNO1ActionPerformed
        this.jDialogEliminarDocumentoRelacionadosPaso.setVisible(false);
    }//GEN-LAST:event_jButtonEliminarDocumentoRelacionadoTramiteNO1ActionPerformed

    /**
     * Este método se ejecuta cuando se presiona sobre la tabla en la pestaña de 
     * Administración de Personas, muestra el dialog de Detalles de Persona 
     * @param evt 
     */
private void jTablePersonasMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTablePersonasMouseClicked
    this.persona = this.datosPersonas.getElementAt(this.jTablePersonas.getSelectedRow());
    Conexiones.getInstance().refresh(this.persona);
    this.mostrarPersona();
    this.cambiarEstadoDatosPersona(false);
    this.jDialogConsultaPersona.setVisible(true);
}//GEN-LAST:event_jTablePersonasMouseClicked

    /**
     * Este método se ejecuta cuando se presiona Eliminar Persona en el dialog 
     * Consultar Persona, muestra el dialog de Baja de Persona
     * @param evt 
     */
private void jButtonEliminarDetallesPersonaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarDetallesPersonaActionPerformed
    this.jDialogBajaPersona.setVisible(true);
}//GEN-LAST:event_jButtonEliminarDetallesPersonaActionPerformed

    /**
     * Este método se ejecuta cuando se presiona la tabla de movimientos en el 
     * dialog de Detalles de Persona, muestra el panel de creacion o modifiacion 
     * de movimiento
     * @param evt 
     */
private void jTableCuentaCorrienteMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableCuentaCorrienteMouseClicked
    this.movimiento = this.datosMovimientos.getElementAt(this.jTableCuentaCorriente.getSelectedRow());
    this.jButtonConfirmarMovimiento.setText("Guardar cambios");
    this.mostrarMovimiento();
    this.jButtonEliminarMovimientoCuentaCorriente.setVisible(true);
    this.jDialogMovimientoPersona.setTitle("Modificar Movimiento");
    this.jDialogMovimientoPersona.setVisible(true);
}//GEN-LAST:event_jTableCuentaCorrienteMouseClicked

    /**
     * Este método es ejecuta cuando se presiona el botón Deshacer Busqueda en
     * el panel de busqueda de persona, muestra la lista completa de las personas
     * @param evt 
     */
private void jButtonDeshacerBuscarPersonaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeshacerBuscarPersonaActionPerformed
    this.modificarEstadoPersonasBuscar();
    this.actualizarPersonas();
}//GEN-LAST:event_jButtonDeshacerBuscarPersonaActionPerformed

    /**
     * Este método se ejecuta cuando se presiona el botón Buscar en el panel de
     * búsqueda de las personas, se realiza la búsqueda en la base de datos
     * @param evt 
     */
private void jButtonBuscarPersonaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarPersonaActionPerformed
    this.buscarPersonas();
}//GEN-LAST:event_jButtonBuscarPersonaActionPerformed
    /**
     * abre la ventana para ver los detalles del panel
     * @param evt 
     */
    private void jTablePasosTramitesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTablePasosTramitesMouseClicked
        if (this.jTablePasosTramites.getSelectedRow()!=-1) {
            this.pasoTramite = this.datosPasoTramite.getElementAt(this.jTablePasosTramites.getSelectedRow());
            Conexiones.getInstance().refresh(this.pasoTramite);
            this.jButtonAgregarPasoATramite.setVisible(false);
            this.jButtonModificarPasoTramite.setVisible(true);
            this.jButtonEliminarPasoTramite.setVisible(true);
            this.jButtonGuardarCambiosPasosTramite.setVisible(false);
            this.mostrarPasoTramite();
            this.cambiarEstadoDatosPasoTramite(false);
            this.jDialogAgregarPasoProcesal.setVisible(true);
        }
    }//GEN-LAST:event_jTablePasosTramitesMouseClicked

private void jButtonBuscarMovimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarMovimientoActionPerformed
    this.buscarMovimientos();
}//GEN-LAST:event_jButtonBuscarMovimientoActionPerformed

private void jButtonDeshacerBuscarMovimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeshacerBuscarMovimientoActionPerformed
    this.modificarEstadoMovimientoBuscar();
    this.actualizarMovimientos();
}//GEN-LAST:event_jButtonDeshacerBuscarMovimientoActionPerformed

private void jTableCajaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableCajaMouseClicked
    this.movimiento = this.datosCaja.getElementAt(this.jTableCaja.getSelectedRow());
    this.mostrarMovimiento2();
    this.jDialogModificarMovimiento.setVisible(true);
}//GEN-LAST:event_jTableCajaMouseClicked

private void jButtonEliminarMovimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarMovimientoActionPerformed
    this.jDialogEliminarMovimiento2.setVisible(true);
}//GEN-LAST:event_jButtonEliminarMovimientoActionPerformed

    private void jButtonModificarPasoTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonModificarPasoTramiteActionPerformed
        this.jButtonGuardarCambiosPasosTramite.setVisible(true);
        this.jDateChooserAgregarPasoFechaRealizacion.setEnabled(true);
        this.jDateChooserAgregarPasoFechaVencimiento.setEnabled(true);
        this.jTextAreaAgregarPasoDescripcion.setEnabled(true);
        this.jButtonAgregarDocumentoPaso.setEnabled(true);
        this.jButtonCrearDocumentoPaso.setEnabled(true);
        this.jButtonEliminarDocumentosPAso.setEnabled(true);
    }//GEN-LAST:event_jButtonModificarPasoTramiteActionPerformed

    private void jButtonGuardarCambiosPasosTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonGuardarCambiosPasosTramiteActionPerformed
        try {
            this.cargarPasoTramite();
            this.controlador.guardarPaso(this.pasoTramite);
            this.actualizarPasosTramite();
            this.jDialogAgregarPasoProcesal.setVisible(false);
            this.mostrarConfirmacion("Cambios guardados correctamente");

        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }//GEN-LAST:event_jButtonGuardarCambiosPasosTramiteActionPerformed

private void jButtonBuscarMovimientoCajaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarMovimientoCajaActionPerformed
    this.buscarMovimientosCaja();
}//GEN-LAST:event_jButtonBuscarMovimientoCajaActionPerformed

private void jButtonDeshacerBuscarMovimientoCajaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeshacerBuscarMovimientoCajaActionPerformed
    this.modificarEstadoMovimientoBuscarCaja();
    this.actualizarCaja();
}//GEN-LAST:event_jButtonDeshacerBuscarMovimientoCajaActionPerformed

    private void jButtonEliminarPasoTramiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarPasoTramiteActionPerformed
        this.jDialogEliminarPasoTramite.setVisible(true);
    }//GEN-LAST:event_jButtonEliminarPasoTramiteActionPerformed

    /**
     * Este método se ejecuta cuando se presiona cualquiera de las pestañas,
     * dependiendo cual se encuentre visible actualiza la tabla correspondiente
     * @param evt 
     */
private void jTabbedPaneEstudioJuridicoStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jTabbedPaneEstudioJuridicoStateChanged
    DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
            
    if(this.fechaCambioTarea != null && !(dateFormat.format(this.fechaCambioTarea).equals(dateFormat.format(new java.util.Date()))))
            {
            this.listarProximasTareas();
            }     
            
    switch (this.jTabbedPaneEstudioJuridico.getSelectedIndex()) {
        case 0: //Persona
            this.actualizarPersonas();
            break;
        case 1: //Causa
            this.actualizarCausa();
            break;
        case 2: //Tramite
            this.actualizarTramite();
            break;
        case 3: //Agenda
            this.actualizarTarea();
            this.actualizarPasosProcesales();
            break;
        case 4: //Caja
            this.actualizarCaja();
            break;
    }
}//GEN-LAST:event_jTabbedPaneEstudioJuridicoStateChanged

    private void jButtonagregarDocumentosRelacionadosTrareaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonagregarDocumentosRelacionadosTrareaActionPerformed
        this.agregarDocuemtosRelacionados(datosRutaTarea, jTableDocumentosRelacionadosTarea, this.listaDocumentosRelacionadosTramiteTarea);

    }//GEN-LAST:event_jButtonagregarDocumentosRelacionadosTrareaActionPerformed
    /**
     * Este metodo se ejecuta cuando se presiona sobre la tabla de pasos de la agenda
     * @param evt 
     */
    private void jTablePasosAgendaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTablePasosAgendaMouseClicked
        this.pasoAgenda = this.datosPasosAgenda.getElementAt(this.jTablePasosAgenda.getSelectedRow());
        Conexiones.getInstance().refresh(this.pasoAgenda);
        this.jButtonAgregarPasoATramite.setVisible(false);
        this.jButtonModificarPasoTramite.setVisible(false);
        this.jButtonEliminarPasoTramite.setVisible(false);
        this.jButtonGuardarCambiosPasosTramite.setVisible(false);
        this.mostrarPasoAgenda();
        this.jDialogAgregarPasoProcesal.setTitle("Pasos");
        this.cambiarEstadoDatosPasoTramite(false);
        this.jDialogAgregarPasoProcesal.setVisible(true);
        this.jDialogAgregarPasoProcesal.setTitle("Pasos Trámites");
        this.jButtonModificarPasoTramite.setVisible(true);
        this.jButtonEliminarPasoTramite.setVisible(true);

    }//GEN-LAST:event_jTablePasosAgendaMouseClicked

private void jButtonAceptarRutaDocumento1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarRutaDocumento1ActionPerformed
    this.crearDocumentosRelacionados(this.jTextFieldClienteConsultaCausa, this.jTextFieldNombreRutaDocumentoTramite1, this.jTextFieldNumConsultaCausa, datosRutaPaso, jTableDocumentosRelacionadosPaso1, this.pasoProcesal.getUrlDocumentosRelacionadosPaso(),this.jDialogNombreRutaDocumentoPasoCausa);
}//GEN-LAST:event_jButtonAceptarRutaDocumento1ActionPerformed

private void jButtonCancelarNombreRutaDocumento1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarNombreRutaDocumento1ActionPerformed
    this.jDialogNombreRutaDocumentoPasoCausa.setVisible(false);
}//GEN-LAST:event_jButtonCancelarNombreRutaDocumento1ActionPerformed

    private void jButtonAgregarPasosAltaCausaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAgregarPasosAltaCausaActionPerformed
        this.pasoProcesal = new PasoProcesal();
        this.tablaPasos=jTablePasosProcesalesAltaCausa;
        this.pasoProcesal.setUrlDocumentosRelacionadosPaso(new ArrayList<DocumentosRelacionadosTramite>());
        jButtonModificarDatosPaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/guardar.png")));
        this.jButtonModificarDatosPaso.setText("Guardar Nuevo Paso");
        this.jDialogConsultaPasoProcesal.setTitle("Agregar Paso Procesal");
        this.jDateChooserConsultarPasoFechaRealizacion.setEnabled(true);
        this.jDateChooserConsultarPasoFechaVencimiento.setEnabled(true);
        this.jTextAreaConsultarPasoDescripcion.setEnabled(true);
        this.jButtonAgregarDocumentoPaso1.setEnabled(true);
        this.jButtonCrearDocumentoPaso1.setEnabled(true);
        this.jButtonEliminarDocumentosPAso1.setEnabled(true);
        this.mostrarPaso();
        this.jDialogConsultaPasoProcesal.setVisible(true);

    }//GEN-LAST:event_jButtonAgregarPasosAltaCausaActionPerformed

    private void jTableTablaAlertaPasosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableTablaAlertaPasosMouseClicked
        pasoProcesal=this.datosPasosAgendaAlerta.getElementAt(this.jTableTablaAlertaPasos.getSelectedRow());
        this.mostrarPaso();
        this.cambiarEstadoDatosPasoTramite(false);
        this.cambiarEstadoPasosAgenda(false, "Salir");
        this.jDialogConsultaPasoProcesal.setVisible(true);
        this.cambiarEstadoPasosAgenda(true, "Cancelar");
    }//GEN-LAST:event_jTableTablaAlertaPasosMouseClicked

    private void jTabbedPaneEstudioJuridicoComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_jTabbedPaneEstudioJuridicoComponentShown
        
        
    }//GEN-LAST:event_jTabbedPaneEstudioJuridicoComponentShown

    private void jTabbedPaneEstudioJuridicoPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jTabbedPaneEstudioJuridicoPropertyChange
        this.listarProximasTareas();
    }//GEN-LAST:event_jTabbedPaneEstudioJuridicoPropertyChange

    private void jComboBoxTipoConsultaCausaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBoxTipoConsultaCausaItemStateChanged
if ("Otro".equals(this.jComboBoxTipoConsultaCausa.getSelectedItem().toString())) {
            this.jTextFieldTipoCausaOtro.setEnabled(true);
            this.jTextFieldTipoCausaOtro.setVisible(true);
            
        } else {
            this.jTextFieldTipoCausaOtro.setEnabled(false);
            this.jTextFieldTipoCausaOtro.setVisible(false);
        }        
    }//GEN-LAST:event_jComboBoxTipoConsultaCausaItemStateChanged

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;


                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                Ventana ventana = new Ventana();
                ventana.setLocationRelativeTo(null);
                ventana.setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel agregarMovDebe;
    private javax.swing.JLabel agregarMovFecha;
    private javax.swing.JLabel agregarMovHaber;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButtonAbogadoApoderado;
    private javax.swing.JButton jButtonAbogadoApoderadoConsultaCausa;
    private javax.swing.JButton jButtonAbogadoContraparte;
    private javax.swing.JButton jButtonAbogadoContraparteConsultaCausa;
    private javax.swing.JButton jButtonAbrirDocumentoTarea;
    private javax.swing.JButton jButtonAbrirDocumentoTramite;
    private javax.swing.JButton jButtonAbrirDocumentosPaso;
    private javax.swing.JButton jButtonAbrirDocumentosPaso1;
    private javax.swing.JButton jButtonAceptarAdvertencia;
    private javax.swing.JButton jButtonAceptarAgregarMov;
    private javax.swing.JButton jButtonAceptarAgregarTarea;
    private javax.swing.JButton jButtonAceptarAgregarTramite;
    private javax.swing.JButton jButtonAceptarAlertaTarea;
    private javax.swing.JButton jButtonAceptarConfirmacion;
    private javax.swing.JButton jButtonAceptarEliminarCausa;
    private javax.swing.JButton jButtonAceptarError;
    private javax.swing.JButton jButtonAceptarModificarMov;
    private javax.swing.JButton jButtonAceptarRutaDocumento;
    private javax.swing.JButton jButtonAceptarRutaDocumento1;
    private javax.swing.JButton jButtonAceptarRutaDocumentoPaso;
    private javax.swing.JButton jButtonAceptarRutaDocumentoTarea;
    private javax.swing.JButton jButtonAgregarDocumentoPaso;
    private javax.swing.JButton jButtonAgregarDocumentoPaso1;
    private javax.swing.JButton jButtonAgregarDocumentosRelacionadosAgregarTramite;
    private javax.swing.JButton jButtonAgregarMovimiento;
    private javax.swing.JButton jButtonAgregarMovimientoCuentaCorriente;
    private javax.swing.JButton jButtonAgregarPasoATramite;
    private javax.swing.JButton jButtonAgregarPasosAltaCausa;
    private javax.swing.JButton jButtonAgregarPasosTramite;
    private javax.swing.JButton jButtonAgregarTareaAgenda;
    private javax.swing.JButton jButtonAgregarTramite;
    private javax.swing.JButton jButtonAltaCausas;
    private javax.swing.JButton jButtonAltaPersona;
    private javax.swing.JButton jButtonApoderadoTarea;
    private javax.swing.JButton jButtonBajaCausas;
    private javax.swing.JButton jButtonBajaCausas1;
    private javax.swing.JButton jButtonBuscarAgenda;
    private javax.swing.JButton jButtonBuscarApoderadoAgregarTramite;
    private javax.swing.JButton jButtonBuscarApoderadoCausa;
    private javax.swing.JButton jButtonBuscarApoderadoTarea;
    private javax.swing.JButton jButtonBuscarApoderadoTramite;
    private javax.swing.JButton jButtonBuscarCausa;
    private javax.swing.JButton jButtonBuscarClienteAgregarTramite;
    private javax.swing.JButton jButtonBuscarClienteCausa;
    private javax.swing.JButton jButtonBuscarClienteTramite;
    private javax.swing.JButton jButtonBuscarContraparteCausa;
    private javax.swing.JButton jButtonBuscarContraparteCausa1;
    private javax.swing.JButton jButtonBuscarMovimiento;
    private javax.swing.JButton jButtonBuscarMovimientoCaja;
    private javax.swing.JButton jButtonBuscarPersona;
    private javax.swing.JButton jButtonBuscarTramite;
    private javax.swing.JButton jButtonCancelarAgregarMov;
    private javax.swing.JButton jButtonCancelarAgregarTarea;
    private javax.swing.JButton jButtonCancelarAgregarTramite;
    private javax.swing.JButton jButtonCancelarAltaCausa;
    private javax.swing.JButton jButtonCancelarAltaPersona;
    private javax.swing.JButton jButtonCancelarConsultaCausa;
    private javax.swing.JButton jButtonCancelarDetallesPersona;
    private javax.swing.JButton jButtonCancelarEliminarCausa;
    private javax.swing.JButton jButtonCancelarModificarMov;
    private javax.swing.JButton jButtonCancelarMovimiento;
    private javax.swing.JButton jButtonCancelarNombreRutaDocumento;
    private javax.swing.JButton jButtonCancelarNombreRutaDocumento1;
    private javax.swing.JButton jButtonCancelarNombreRutaPaso;
    private javax.swing.JButton jButtonCancelarNombreRutaTarea;
    private javax.swing.JButton jButtonCancelarNuevoPaso;
    private javax.swing.JButton jButtonCliente;
    private javax.swing.JButton jButtonClienteConsultaCausa;
    private javax.swing.JButton jButtonConfirmarAltaCausa;
    private javax.swing.JButton jButtonConfirmarAltaPersona;
    private javax.swing.JButton jButtonConfirmarConsultaCausa;
    private javax.swing.JButton jButtonConfirmarMovimiento;
    private javax.swing.JButton jButtonConsultaCausaAgregarPaso;
    private javax.swing.JButton jButtonConsultaCausaAgregarPaso1;
    private javax.swing.JButton jButtonContraparte;
    private javax.swing.JButton jButtonContraparteConsultaCausa;
    private javax.swing.JButton jButtonCrearDocumentoPaso;
    private javax.swing.JButton jButtonCrearDocumentoPaso1;
    private javax.swing.JButton jButtonCrearDocumentosRelacionadosAgregarTramite;
    private javax.swing.JButton jButtonCrearDocumentosRelacionadosTarea;
    private javax.swing.JButton jButtonDeshacerBuscarMovimiento;
    private javax.swing.JButton jButtonDeshacerBuscarMovimientoCaja;
    private javax.swing.JButton jButtonDeshacerBuscarPersona;
    private javax.swing.JButton jButtonDeshacerBusquedaApoderadoCausa;
    private javax.swing.JButton jButtonDeshacerBusquedaApoderadoTarea;
    private javax.swing.JButton jButtonDeshacerBusquedaApoderadoTramite;
    private javax.swing.JButton jButtonDeshacerBusquedaCausa;
    private javax.swing.JButton jButtonDeshacerBusquedaClienteCausa;
    private javax.swing.JButton jButtonDeshacerBusquedaClienteTramite;
    private javax.swing.JButton jButtonDeshacerBusquedaContraparteCausa;
    private javax.swing.JButton jButtonDeshacerBusquedaContraparteCausa1;
    private javax.swing.JButton jButtonDeshacerBusquedaTarea;
    private javax.swing.JButton jButtonDeshacerBusquedaTramite;
    private javax.swing.JButton jButtonEliminarDetallesPersona;
    private javax.swing.JButton jButtonEliminarDocuemntoPasoSI;
    private javax.swing.JButton jButtonEliminarDocuemntoTareaSI;
    private javax.swing.JButton jButtonEliminarDocumentoPasoNO;
    private javax.swing.JButton jButtonEliminarDocumentoRelacionadoTramite;
    private javax.swing.JButton jButtonEliminarDocumentoRelacionadoTramiteNO;
    private javax.swing.JButton jButtonEliminarDocumentoRelacionadoTramiteNO1;
    private javax.swing.JButton jButtonEliminarDocumentoRelacionadoTramiteSI;
    private javax.swing.JButton jButtonEliminarDocumentoRelacionadoTramiteSI1;
    private javax.swing.JButton jButtonEliminarDocumentoTarea;
    private javax.swing.JButton jButtonEliminarDocumentoTareaNO;
    private javax.swing.JButton jButtonEliminarDocumentosPAso;
    private javax.swing.JButton jButtonEliminarDocumentosPAso1;
    private javax.swing.JButton jButtonEliminarMovimiento;
    private javax.swing.JButton jButtonEliminarMovimientoCuentaCorriente;
    private javax.swing.JButton jButtonEliminarPasoTramite;
    private javax.swing.JButton jButtonEliminarPasoTramiteSI;
    private javax.swing.JButton jButtonEliminarPasoTrtamiteNO;
    private javax.swing.JButton jButtonEliminarTarea;
    private javax.swing.JButton jButtonEliminarTramite;
    private javax.swing.JButton jButtonGuardarCambiosAgregarTramite;
    private javax.swing.JButton jButtonGuardarCambiosPasosTramite;
    private javax.swing.JButton jButtonGuardarDetallesPersona;
    private javax.swing.JButton jButtonGuardarModificacionTarea;
    private javax.swing.JButton jButtonModificarAgregarTramite;
    private javax.swing.JButton jButtonModificarDatosPaso;
    private javax.swing.JButton jButtonModificarDetallesPersona;
    private javax.swing.JButton jButtonModificarPasoTramite;
    private javax.swing.JButton jButtonModificarTarea;
    private javax.swing.JButton jButtonNoBajaPersona;
    private javax.swing.JButton jButtonNoEliminarMovimiento;
    private javax.swing.JButton jButtonNoEliminarMovimiento2;
    private javax.swing.JButton jButtonNoEliminarPaso;
    private javax.swing.JButton jButtonNoEliminarTarea;
    private javax.swing.JButton jButtonNoEliminarTramite;
    private javax.swing.JButton jButtonSiBajaPersona;
    private javax.swing.JButton jButtonSiEliminarMovimiento;
    private javax.swing.JButton jButtonSiEliminarMovimiento2;
    private javax.swing.JButton jButtonSiEliminarPaso;
    private javax.swing.JButton jButtonSiEliminarTarea;
    private javax.swing.JButton jButtonSiEliminarTramite;
    private javax.swing.JButton jButtonagregarDocumentosRelacionadosTrarea;
    private com.toedter.calendar.JCalendar jCalendarAgenda;
    private javax.swing.JComboBox jComboBoxAbogadoAltaPersona;
    private javax.swing.JComboBox jComboBoxAbogadoDetallesPersona;
    private javax.swing.JComboBox jComboBoxTipoAltaCausa;
    private javax.swing.JComboBox jComboBoxTipoConsultaCausa;
    private javax.swing.JComboBox jComboBoxTipoDetallesPersona;
    private javax.swing.JComboBox jComboBoxTipoDocDetallesPersona;
    private javax.swing.JComboBox jComboBoxTipoDocumentoAltaPersona;
    private javax.swing.JComboBox jComboBoxTipoDocumentoBuscarApoderadoCausa;
    private javax.swing.JComboBox jComboBoxTipoDocumentoBuscarApoderadoTarea;
    private javax.swing.JComboBox jComboBoxTipoDocumentoBuscarApoderadoTramite;
    private javax.swing.JComboBox jComboBoxTipoDocumentoBuscarClienteCausa;
    private javax.swing.JComboBox jComboBoxTipoDocumentoBuscarClienteTramite;
    private javax.swing.JComboBox jComboBoxTipoDocumentoBuscarContraparteCausa;
    private javax.swing.JComboBox jComboBoxTipoDocumentoBuscarContraparteCausa1;
    private javax.swing.JComboBox jComboBoxTipoDocumentoBuscarPersona;
    private javax.swing.JComboBox jComboBoxTipoPersonaAltaPersona;
    private com.toedter.calendar.JDateChooser jDateChooserAgregarPasoFechaRealizacion;
    private com.toedter.calendar.JDateChooser jDateChooserAgregarPasoFechaVencimiento;
    private com.toedter.calendar.JDateChooser jDateChooserCierreBuscarCausa;
    private com.toedter.calendar.JDateChooser jDateChooserConsultarPasoFechaRealizacion;
    private com.toedter.calendar.JDateChooser jDateChooserConsultarPasoFechaVencimiento;
    private com.toedter.calendar.JDateChooser jDateChooserFechaAgenda;
    private com.toedter.calendar.JDateChooser jDateChooserFechaBuscarMovimiento;
    private com.toedter.calendar.JDateChooser jDateChooserFechaBuscarMovimientoCaja;
    private com.toedter.calendar.JDateChooser jDateChooserFechaCierreAltaCausa;
    private com.toedter.calendar.JDateChooser jDateChooserFechaCierreConsultaCausa;
    private com.toedter.calendar.JDateChooser jDateChooserFechaFinAgregarTramite;
    private com.toedter.calendar.JDateChooser jDateChooserFechaInicioAgregarTramite;
    private com.toedter.calendar.JDateChooser jDateChooserFechaInicioAltaCausa;
    private com.toedter.calendar.JDateChooser jDateChooserFechaInicioConsultaCausa;
    private com.toedter.calendar.JDateChooser jDateChooserFechaMovimiento;
    private com.toedter.calendar.JDateChooser jDateChooserFechaMovimiento2;
    private com.toedter.calendar.JDateChooser jDateChooserFechaMovimiento3;
    private com.toedter.calendar.JDateChooser jDateChooserFechaRealizacionTarea;
    private com.toedter.calendar.JDateChooser jDateChooserInicioBuscarCausa;
    private javax.swing.JDialog jDialogAdvertencia;
    private javax.swing.JDialog jDialogAgregarMovimiento;
    private javax.swing.JDialog jDialogAgregarPasoProcesal;
    private javax.swing.JDialog jDialogAgregarTarea;
    private javax.swing.JDialog jDialogAgregarTramite;
    private javax.swing.JDialog jDialogAlertaAgenda;
    private javax.swing.JDialog jDialogAltaCausa;
    private javax.swing.JDialog jDialogAltaPersona;
    private javax.swing.JDialog jDialogBajaPersona;
    private javax.swing.JDialog jDialogBuscarAbogadoContraparteCausa;
    private javax.swing.JDialog jDialogBuscarApoderadoCausa;
    private javax.swing.JDialog jDialogBuscarApoderadoTarea;
    private javax.swing.JDialog jDialogBuscarApoderadoTramite;
    private javax.swing.JDialog jDialogBuscarClienteCausa;
    private javax.swing.JDialog jDialogBuscarClienteTramite;
    private javax.swing.JDialog jDialogBuscarContraparteCausa;
    private javax.swing.JDialog jDialogConfirmacion;
    private javax.swing.JDialog jDialogConfirmacionBajaCausa;
    private javax.swing.JDialog jDialogConfirmacionEliminarPaso;
    private javax.swing.JDialog jDialogConsultaCausa;
    private javax.swing.JDialog jDialogConsultaPasoProcesal;
    private javax.swing.JDialog jDialogConsultaPersona;
    private javax.swing.JDialog jDialogEliminarDocumentoRelacionadoPasoTramite;
    private javax.swing.JDialog jDialogEliminarDocumentoRelacionadosPaso;
    private javax.swing.JDialog jDialogEliminarDocumentoRelacionadosTramite;
    private javax.swing.JDialog jDialogEliminarDocumentosRelacionadosTarea;
    private javax.swing.JDialog jDialogEliminarMovimiento;
    private javax.swing.JDialog jDialogEliminarMovimiento2;
    private javax.swing.JDialog jDialogEliminarPasoTramite;
    private javax.swing.JDialog jDialogEliminarTarea;
    private javax.swing.JDialog jDialogEliminarTramite;
    private javax.swing.JDialog jDialogError;
    private javax.swing.JDialog jDialogModificarMovimiento;
    private javax.swing.JDialog jDialogMovimientoPersona;
    private javax.swing.JDialog jDialogNombreRutaDocumento;
    private javax.swing.JDialog jDialogNombreRutaDocumentoPasoCausa;
    private javax.swing.JDialog jDialogNombreRutaDocumentoTarea;
    private javax.swing.JDialog jDialogNombreRutasDocumentosPaso;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabelAbogadoAltaPersona;
    private javax.swing.JLabel jLabelAbogadoApoderado;
    private javax.swing.JLabel jLabelAbogadoApoderadoConsultaCausa;
    private javax.swing.JLabel jLabelAbogadoContraparte;
    private javax.swing.JLabel jLabelAbogadoContraparte1;
    private javax.swing.JLabel jLabelAbogadoDetallesPersona;
    private javax.swing.JLabel jLabelAgregarPasoDescripcion;
    private javax.swing.JLabel jLabelAgregarPasoDescripcion1;
    private javax.swing.JLabel jLabelAgregarPasoFechaRealizacion;
    private javax.swing.JLabel jLabelAgregarPasoFechaRealizacion1;
    private javax.swing.JLabel jLabelAgregarPasoFechaTitulo;
    private javax.swing.JLabel jLabelAgregarPasoFechaTitulo1;
    private javax.swing.JLabel jLabelAgregarPasoFechaVencimiento;
    private javax.swing.JLabel jLabelAgregarPasoFechaVencimiento1;
    private javax.swing.JLabel jLabelAlertaTarea;
    private javax.swing.JLabel jLabelApoderadoAgregarTramite;
    private javax.swing.JLabel jLabelApoderadoTarea;
    private javax.swing.JLabel jLabelCaratulaCausa;
    private javax.swing.JLabel jLabelCaratulaConsultaCausa;
    private javax.swing.JLabel jLabelCaratulaNuevaCausa;
    private javax.swing.JLabel jLabelCausasDetallesPersona;
    private javax.swing.JLabel jLabelCliente;
    private javax.swing.JLabel jLabelCliente1;
    private javax.swing.JLabel jLabelClienteAgregarTramite;
    private javax.swing.JLabel jLabelCodPostalAltaPersona;
    private javax.swing.JLabel jLabelCodPostalDetallesPersona;
    private javax.swing.JLabel jLabelConfirmacionBajaCausa;
    private javax.swing.JLabel jLabelConfirmacionEliminarPaso;
    private javax.swing.JLabel jLabelContraparte;
    private javax.swing.JLabel jLabelContraparte1;
    private javax.swing.JLabel jLabelCuenta;
    private javax.swing.JLabel jLabelDatosAltaPersona;
    private javax.swing.JLabel jLabelDatosDetallesPersona;
    private javax.swing.JLabel jLabelDebeBuscarMovimiento;
    private javax.swing.JLabel jLabelDebeBuscarMovimientoCaja;
    private javax.swing.JLabel jLabelDebeMovimiento;
    private javax.swing.JLabel jLabelDescAltaCausa;
    private javax.swing.JLabel jLabelDescConsultaCausa;
    private javax.swing.JLabel jLabelDescripcion2;
    private javax.swing.JLabel jLabelDescripcionAgregarTarea;
    private javax.swing.JLabel jLabelDescripcionAgregarTramite;
    private javax.swing.JLabel jLabelDescripcionBuscarAgenda;
    private javax.swing.JLabel jLabelDescripcionBuscarMovimiento;
    private javax.swing.JLabel jLabelDescripcionBuscarMovimientoCaja;
    private javax.swing.JLabel jLabelDescripcionBuscarTramite;
    private javax.swing.JLabel jLabelDescripcionCausa;
    private javax.swing.JLabel jLabelDescripcionMovimiento;
    private javax.swing.JLabel jLabelDireccionAltaPersona;
    private javax.swing.JLabel jLabelDireccionBuscarApoderadoCausa;
    private javax.swing.JLabel jLabelDireccionBuscarApoderadoTarea;
    private javax.swing.JLabel jLabelDireccionBuscarApoderadoTramite;
    private javax.swing.JLabel jLabelDireccionBuscarClienteCausa;
    private javax.swing.JLabel jLabelDireccionBuscarClienteTramite;
    private javax.swing.JLabel jLabelDireccionBuscarContraparteCausa;
    private javax.swing.JLabel jLabelDireccionBuscarContraparteCausa1;
    private javax.swing.JLabel jLabelDireccionBuscarPersona;
    private javax.swing.JLabel jLabelDireccionDetallesPersona;
    private javax.swing.JLabel jLabelDocumentoBuscarApoderadoCausa;
    private javax.swing.JLabel jLabelDocumentoBuscarApoderadoCausa1;
    private javax.swing.JLabel jLabelDocumentoBuscarApoderadoCausa2;
    private javax.swing.JLabel jLabelDocumentoBuscarApoderadoTarea;
    private javax.swing.JLabel jLabelDocumentoBuscarApoderadoTramite;
    private javax.swing.JLabel jLabelDocumentoBuscarClienteCausa;
    private javax.swing.JLabel jLabelDocumentoBuscarClienteTramite;
    private javax.swing.JLabel jLabelDocumentoBuscarPersona;
    private javax.swing.JLabel jLabelEliminarDocuemnteoRelacionadoTramite;
    private javax.swing.JLabel jLabelEliminarDocuemnteoRelacionadoTramite1;
    private javax.swing.JLabel jLabelEliminarDocumentoPaso;
    private javax.swing.JLabel jLabelEliminarDocumentoTarea;
    private javax.swing.JLabel jLabelEliminarPasoTramite;
    private javax.swing.JLabel jLabelEliminarTarea;
    private javax.swing.JLabel jLabelEliminarTramite;
    private javax.swing.JLabel jLabelEmailAltaPersona;
    private javax.swing.JLabel jLabelEmailBuscarApoderadoCausa;
    private javax.swing.JLabel jLabelEmailBuscarApoderadoCausa1;
    private javax.swing.JLabel jLabelEmailBuscarApoderadoCausa2;
    private javax.swing.JLabel jLabelEmailBuscarApoderadoTarea;
    private javax.swing.JLabel jLabelEmailBuscarApoderadoTramite;
    private javax.swing.JLabel jLabelEmailBuscarClienteCausa;
    private javax.swing.JLabel jLabelEmailBuscarClienteTramite;
    private javax.swing.JLabel jLabelEmailBuscarPersona;
    private javax.swing.JLabel jLabelEmailDetallesPersona;
    private javax.swing.JLabel jLabelFechaBuscarAgenda;
    private javax.swing.JLabel jLabelFechaBuscarMovimiento;
    private javax.swing.JLabel jLabelFechaBuscarMovimientoCaja;
    private javax.swing.JLabel jLabelFechaCierreAltaCausa;
    private javax.swing.JLabel jLabelFechaCierreConsultaCausa;
    private javax.swing.JLabel jLabelFechaFinAgregarTramite;
    private javax.swing.JLabel jLabelFechaInicioAgregarTramite;
    private javax.swing.JLabel jLabelFechaInicioAltaCausa;
    private javax.swing.JLabel jLabelFechaInicioCausa;
    private javax.swing.JLabel jLabelFechaInicioConsultaCausa;
    private javax.swing.JLabel jLabelFechaMovimiento;
    private javax.swing.JLabel jLabelFechaRealizacionAgregarTarea;
    private javax.swing.JLabel jLabelHaberBuscarMovimiento;
    private javax.swing.JLabel jLabelHaberBuscarMovimientoCaja;
    private javax.swing.JLabel jLabelHaberMovimiento;
    private javax.swing.JLabel jLabelHoraAgregarTarea;
    private javax.swing.JLabel jLabelHoraBuscarAgenda;
    private javax.swing.JLabel jLabelHoraTextoTarea;
    private javax.swing.JLabel jLabelJuzgadoAltaCausa;
    private javax.swing.JLabel jLabelJuzgadoCausa;
    private javax.swing.JLabel jLabelJuzgadoConsultaCausa;
    private javax.swing.JLabel jLabelListadoCausas;
    private javax.swing.JLabel jLabelListadoDePasos;
    private javax.swing.JLabel jLabelListadoProximosPasosAgenda;
    private javax.swing.JLabel jLabelLocalidadAltaPersona;
    private javax.swing.JLabel jLabelLocalidadDetallesPersona;
    private javax.swing.JLabel jLabelLugarAgregarTarea;
    private javax.swing.JLabel jLabelLugarBuscarAgenda;
    private javax.swing.JLabel jLabelMensajeBajaPersona;
    private javax.swing.JLabel jLabelMensajeEliminarMovimiento;
    private javax.swing.JLabel jLabelMensajeEliminarMovimiento2;
    private javax.swing.JLabel jLabelMinutosTextoTarea;
    private javax.swing.JLabel jLabelNombreAltaPersona;
    private javax.swing.JLabel jLabelNombreBuscarApoderadoCausa;
    private javax.swing.JLabel jLabelNombreBuscarApoderadoTarea;
    private javax.swing.JLabel jLabelNombreBuscarApoderadoTramite;
    private javax.swing.JLabel jLabelNombreBuscarClienteCausa;
    private javax.swing.JLabel jLabelNombreBuscarClienteTramite;
    private javax.swing.JLabel jLabelNombreBuscarContraparteCausa;
    private javax.swing.JLabel jLabelNombreBuscarContraparteCausa1;
    private javax.swing.JLabel jLabelNombreBuscarPersona;
    private javax.swing.JLabel jLabelNombreDetallesPersona;
    private javax.swing.JLabel jLabelNombreRutaDocumento;
    private javax.swing.JLabel jLabelNombreRutaDocumento1;
    private javax.swing.JLabel jLabelNombreRutaDocumentoPaso;
    private javax.swing.JLabel jLabelNombreRutaDocumentoTarea;
    private javax.swing.JLabel jLabelNroDocAltaPersona;
    private javax.swing.JLabel jLabelNroMatriculaAltaPersona;
    private javax.swing.JLabel jLabelNroMatriculaDetallesPersona;
    private javax.swing.JLabel jLabelNumAltaCausa;
    private javax.swing.JLabel jLabelNumConsultaCausa;
    private javax.swing.JLabel jLabelNumDocDetallesPersona;
    private javax.swing.JLabel jLabelNumeroAgregarTarea;
    private javax.swing.JLabel jLabelNumeroAgregarTramite;
    private javax.swing.JLabel jLabelNumeroBuscarAgenda;
    private javax.swing.JLabel jLabelNumeroBuscarTramite;
    private javax.swing.JLabel jLabelNumeroCausa;
    private javax.swing.JLabel jLabelTelefono2DetallesPersona;
    private javax.swing.JLabel jLabelTelefonoAltAltaPersona;
    private javax.swing.JLabel jLabelTelefonoAltaPersona;
    private javax.swing.JLabel jLabelTelefonoBuscarApoderadoCausa;
    private javax.swing.JLabel jLabelTelefonoBuscarApoderadoTarea;
    private javax.swing.JLabel jLabelTelefonoBuscarApoderadoTramite;
    private javax.swing.JLabel jLabelTelefonoBuscarClienteCausa;
    private javax.swing.JLabel jLabelTelefonoBuscarClienteTramite;
    private javax.swing.JLabel jLabelTelefonoBuscarContraparteCausa;
    private javax.swing.JLabel jLabelTelefonoBuscarContraparteCausa1;
    private javax.swing.JLabel jLabelTelefonoBuscarPersona;
    private javax.swing.JLabel jLabelTelefonoDetallesPersona;
    private javax.swing.JLabel jLabelTextoAdvertencia;
    private javax.swing.JLabel jLabelTextoAgenda;
    private javax.swing.JLabel jLabelTextoCaja;
    private javax.swing.JLabel jLabelTextoConfirmacion;
    private javax.swing.JLabel jLabelTextoError;
    private javax.swing.JLabel jLabelTextoListadoTramites;
    private javax.swing.JLabel jLabelTextoListadoTramites1;
    private javax.swing.JLabel jLabelTextoTotal;
    private javax.swing.JLabel jLabelTextoTotalCaja;
    private javax.swing.JLabel jLabelTextoTotalDebe;
    private javax.swing.JLabel jLabelTextoTotalDebeCaja;
    private javax.swing.JLabel jLabelTextoTotalHaber;
    private javax.swing.JLabel jLabelTextoTotalHaberCaja;
    private javax.swing.JLabel jLabelTipoAltaCausa;
    private javax.swing.JLabel jLabelTipoCausa;
    private javax.swing.JLabel jLabelTipoConsultaCausa;
    private javax.swing.JLabel jLabelTipoDetallesPersona;
    private javax.swing.JLabel jLabelTipoDocAltaPersona;
    private javax.swing.JLabel jLabelTipoDocDetallesPersona;
    private javax.swing.JLabel jLabelTipoDocumentoBuscarApoderadoCausa;
    private javax.swing.JLabel jLabelTipoDocumentoBuscarApoderadoCausa1;
    private javax.swing.JLabel jLabelTipoDocumentoBuscarApoderadoCausa2;
    private javax.swing.JLabel jLabelTipoDocumentoBuscarApoderadoCausa3;
    private javax.swing.JLabel jLabelTipoDocumentoBuscarApoderadoTarea;
    private javax.swing.JLabel jLabelTipoDocumentoBuscarClienteCausa;
    private javax.swing.JLabel jLabelTipoDocumentoBuscarClienteTramite;
    private javax.swing.JLabel jLabelTipoDocumentoBuscarPersona;
    private javax.swing.JLabel jLabelTipoPersonaAltaPersona;
    private javax.swing.JLabel jLabelTituloAltaCausa;
    private javax.swing.JLabel jLabelTituloConsultaCausa;
    private javax.swing.JLabel jLabelTotalDebeMovimientos;
    private javax.swing.JLabel jLabelTotalDebeMovimientosCaja;
    private javax.swing.JLabel jLabelTotalHaberMovimientos;
    private javax.swing.JLabel jLabelTotalHaberMovimientosCaja;
    private javax.swing.JLabel jLabelTotalMovimientos;
    private javax.swing.JLabel jLabelTotalMovimientosCaja;
    private javax.swing.JLabel jLabelTramitesDetallesPersona;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanelAdmCausas;
    private javax.swing.JPanel jPanelAdministracionTramites;
    private javax.swing.JPanel jPanelAgenda;
    private javax.swing.JPanel jPanelAgregarPasoProcesalConsultaCausa;
    private javax.swing.JPanel jPanelApoderadoCausa;
    private javax.swing.JPanel jPanelApoderadoTramite;
    private javax.swing.JPanel jPanelBuscarAgenda;
    private javax.swing.JPanel jPanelBuscarApoderadoCausa;
    private javax.swing.JPanel jPanelBuscarApoderadoTarea;
    private javax.swing.JPanel jPanelBuscarApoderadoTramite;
    private javax.swing.JPanel jPanelBuscarClienteCausa;
    private javax.swing.JPanel jPanelBuscarClienteTramite;
    private javax.swing.JPanel jPanelBuscarContraparteCausa;
    private javax.swing.JPanel jPanelBuscarContraparteCausa1;
    private javax.swing.JPanel jPanelBuscarMovimientos;
    private javax.swing.JPanel jPanelBuscarMovimientosCaja;
    private javax.swing.JPanel jPanelBuscarTramite;
    private javax.swing.JPanel jPanelBuscarVenta;
    private javax.swing.JPanel jPanelCaja;
    private javax.swing.JPanel jPanelClienteTramite;
    private javax.swing.JPanel jPanelClienteTramiteCausa;
    private javax.swing.JPanel jPanelContraparteCausa;
    private javax.swing.JPanel jPanelContraparteCausa1;
    private javax.swing.JPanel jPanelCuentaCorriente;
    private javax.swing.JPanel jPanelDocumentosRelacionadoTramite;
    private javax.swing.JPanel jPanelDocumentosRelacionadosPasoProcesal;
    private javax.swing.JPanel jPanelDocumentosRelacionadosPasoProcesal1;
    private javax.swing.JPanel jPanelDocumentosRelacionadosTarea;
    private javax.swing.JPanel jPanelPasosCausa;
    private javax.swing.JPanel jPanelPasosTramites;
    private javax.swing.JPanel jPanelPersonas;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane11;
    private javax.swing.JScrollPane jScrollPane12;
    private javax.swing.JScrollPane jScrollPane13;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JScrollPane jScrollPaneAgregarPasoDescr;
    private javax.swing.JScrollPane jScrollPaneAgregarPasoDescr1;
    private javax.swing.JScrollPane jScrollPaneAlertaTareas;
    private javax.swing.JScrollPane jScrollPaneApoderadoCausa;
    private javax.swing.JScrollPane jScrollPaneApoderadoTramite;
    private javax.swing.JScrollPane jScrollPaneBuscarApoderadoCausa;
    private javax.swing.JScrollPane jScrollPaneBuscarApoderadoTarea;
    private javax.swing.JScrollPane jScrollPaneBuscarApoderadoTramite;
    private javax.swing.JScrollPane jScrollPaneBuscarClienteCausa;
    private javax.swing.JScrollPane jScrollPaneBuscarClienteTramite;
    private javax.swing.JScrollPane jScrollPaneBuscarContraparteCausa;
    private javax.swing.JScrollPane jScrollPaneBuscarContraparteCausa1;
    private javax.swing.JScrollPane jScrollPaneCaja;
    private javax.swing.JScrollPane jScrollPaneCausas;
    private javax.swing.JScrollPane jScrollPaneCausasDetallesPersona;
    private javax.swing.JScrollPane jScrollPaneClienteCausa;
    private javax.swing.JScrollPane jScrollPaneClienteTramite;
    private javax.swing.JScrollPane jScrollPaneConsultaCausaDescripcion;
    private javax.swing.JScrollPane jScrollPaneConsultaCausaPasos;
    private javax.swing.JScrollPane jScrollPaneContraparteCausa;
    private javax.swing.JScrollPane jScrollPaneContraparteCausa1;
    private javax.swing.JScrollPane jScrollPaneCuentaCorriente;
    private javax.swing.JScrollPane jScrollPaneDescripcionMovimiento;
    private javax.swing.JScrollPane jScrollPaneDocumentosRelacionados;
    private javax.swing.JScrollPane jScrollPaneModificarMov;
    private javax.swing.JScrollPane jScrollPanePersonas1;
    private javax.swing.JScrollPane jScrollPaneTramitesDetallesPersona;
    private com.toedter.components.JSpinField jSpinFieldHoraTarea;
    private com.toedter.components.JSpinField jSpinFieldMinutosTarea;
    private javax.swing.JTabbedPane jTabbedPaneEstudioJuridico;
    private javax.swing.JTable jTableAgenda;
    private javax.swing.JTable jTableBuscarAbogadoContraparteCausa;
    private javax.swing.JTable jTableBuscarApoderadoCausa;
    private javax.swing.JTable jTableBuscarApoderadoTarea;
    private javax.swing.JTable jTableBuscarApoderadoTramite;
    private javax.swing.JTable jTableBuscarClienteCausa;
    private javax.swing.JTable jTableBuscarClienteTramite;
    private javax.swing.JTable jTableBuscarContraparteCausa;
    private javax.swing.JTable jTableCaja;
    private javax.swing.JTable jTableCausas;
    private javax.swing.JTable jTableCausasDetallesPersona;
    private javax.swing.JTable jTableConsultaCausaPasos;
    private javax.swing.JTable jTableCuentaCorriente;
    private javax.swing.JTable jTableDocumentosRelacionadosPaso;
    private javax.swing.JTable jTableDocumentosRelacionadosPaso1;
    private javax.swing.JTable jTableDocumentosRelacionadosTarea;
    private javax.swing.JTable jTableDocumentosRelacionadosTramites;
    private javax.swing.JTable jTableListadoTramites;
    private javax.swing.JTable jTablePasosAgenda;
    private javax.swing.JTable jTablePasosProcesalesAltaCausa;
    private javax.swing.JTable jTablePasosTramites;
    private javax.swing.JTable jTablePersonas;
    private javax.swing.JTable jTableTablaAlertaPasos;
    private javax.swing.JTable jTableTablaAlertaTareas;
    private javax.swing.JTable jTableTramitesDetallesPersona;
    private javax.swing.JTextArea jTextAreaAgregarPasoDescripcion;
    private javax.swing.JTextArea jTextAreaConsultarPasoDescripcion;
    private javax.swing.JTextArea jTextAreaDescripcionAgregarTramite;
    private javax.swing.JTextArea jTextAreaDescripcionAltaCausa;
    private javax.swing.JTextArea jTextAreaDescripcionConsultaCausa;
    private javax.swing.JTextArea jTextAreaDescripcionMovimiento;
    private javax.swing.JTextArea jTextAreaDescripcionMovimiento2;
    private javax.swing.JTextArea jTextAreaDescripcionMovimiento3;
    private javax.swing.JTextArea jTextAreaDescripcionTarea;
    private javax.swing.JTextField jTextFieldAbogadoApoderado;
    private javax.swing.JTextField jTextFieldAbogadoApoderadoConsultaCausa;
    private javax.swing.JTextField jTextFieldAbogadoContraparte;
    private javax.swing.JTextField jTextFieldAbogadoContraparteConsultaCausa;
    private javax.swing.JTextField jTextFieldApoderadoAgregarTramite;
    private javax.swing.JTextField jTextFieldApoderadoTarea;
    private javax.swing.JTextField jTextFieldCaratulaBuscarCausa;
    private javax.swing.JTextField jTextFieldCaratulaConsultaCausa;
    private javax.swing.JTextField jTextFieldCaratulaNuevaCausa;
    private javax.swing.JTextField jTextFieldCliente;
    private javax.swing.JTextField jTextFieldClienteAgregarTramite;
    private javax.swing.JTextField jTextFieldClienteConsultaCausa;
    private javax.swing.JTextField jTextFieldCodPostalAltaPersona;
    private javax.swing.JTextField jTextFieldCodPostalDetallesPersona;
    private javax.swing.JTextField jTextFieldContraparte;
    private javax.swing.JTextField jTextFieldContraparteConsultaCausa;
    private javax.swing.JTextField jTextFieldDebeBuscarMovimiento;
    private javax.swing.JTextField jTextFieldDebeBuscarMovimientoCaja;
    private javax.swing.JTextField jTextFieldDebeMovimiento;
    private javax.swing.JTextField jTextFieldDebeMovimiento2;
    private javax.swing.JTextField jTextFieldDebeMovimiento3;
    private javax.swing.JTextField jTextFieldDescripcionBuscarAgenda;
    private javax.swing.JTextField jTextFieldDescripcionBuscarCausa;
    private javax.swing.JTextField jTextFieldDescripcionBuscarMovimiento;
    private javax.swing.JTextField jTextFieldDescripcionBuscarMovimientoCaja;
    private javax.swing.JTextField jTextFieldDescripcionBuscarTramite;
    private javax.swing.JTextField jTextFieldDireccionAltaPersona;
    private javax.swing.JTextField jTextFieldDireccionBuscarApoderadoCausa;
    private javax.swing.JTextField jTextFieldDireccionBuscarApoderadoTarea;
    private javax.swing.JTextField jTextFieldDireccionBuscarApoderadoTramite;
    private javax.swing.JTextField jTextFieldDireccionBuscarClienteCausa;
    private javax.swing.JTextField jTextFieldDireccionBuscarClienteTramite;
    private javax.swing.JTextField jTextFieldDireccionBuscarContraparteCausa;
    private javax.swing.JTextField jTextFieldDireccionBuscarContraparteCausa1;
    private javax.swing.JTextField jTextFieldDireccionBuscarPersona;
    private javax.swing.JTextField jTextFieldDireccionDetallesPersona;
    private javax.swing.JTextField jTextFieldDocumentoBuscarApoderadoCausa;
    private javax.swing.JTextField jTextFieldDocumentoBuscarApoderadoTarea;
    private javax.swing.JTextField jTextFieldDocumentoBuscarApoderadoTramite;
    private javax.swing.JTextField jTextFieldDocumentoBuscarClienteCausa;
    private javax.swing.JTextField jTextFieldDocumentoBuscarClienteTramite;
    private javax.swing.JTextField jTextFieldDocumentoBuscarContraparteCausa;
    private javax.swing.JTextField jTextFieldDocumentoBuscarContraparteCausa1;
    private javax.swing.JTextField jTextFieldDocumentoBuscarPersona;
    private javax.swing.JTextField jTextFieldEmailAltaPersona;
    private javax.swing.JTextField jTextFieldEmailBuscarApoderadoCausa;
    private javax.swing.JTextField jTextFieldEmailBuscarApoderadoTarea;
    private javax.swing.JTextField jTextFieldEmailBuscarApoderadoTramite;
    private javax.swing.JTextField jTextFieldEmailBuscarClienteCausa;
    private javax.swing.JTextField jTextFieldEmailBuscarClienteTramite;
    private javax.swing.JTextField jTextFieldEmailBuscarContraparteCausa;
    private javax.swing.JTextField jTextFieldEmailBuscarContraparteCausa1;
    private javax.swing.JTextField jTextFieldEmailBuscarPersona;
    private javax.swing.JTextField jTextFieldEmailDetallesPersona;
    private javax.swing.JTextField jTextFieldHaberBuscarMovimiento;
    private javax.swing.JTextField jTextFieldHaberBuscarMovimientoCaja;
    private javax.swing.JTextField jTextFieldHaberMovimiento;
    private javax.swing.JTextField jTextFieldHaberMovimiento2;
    private javax.swing.JTextField jTextFieldHaberMovimiento3;
    private javax.swing.JTextField jTextFieldHoraBuscarAgenda;
    private javax.swing.JTextField jTextFieldIngreseTipo;
    private javax.swing.JTextField jTextFieldJuzgadoAltaCausa;
    private javax.swing.JTextField jTextFieldJuzgadoBuscarCausa;
    private javax.swing.JTextField jTextFieldJuzgadoConsultaCausa;
    private javax.swing.JTextField jTextFieldJuzgadoConsultaCausa1;
    private javax.swing.JTextField jTextFieldLocalidadAltaPersona;
    private javax.swing.JTextField jTextFieldLocalidadDetallesPersona;
    private javax.swing.JTextField jTextFieldLugarAgregarTarea;
    private javax.swing.JTextField jTextFieldLugarBuscarAgenda;
    private javax.swing.JTextField jTextFieldNombreAltaPersona;
    private javax.swing.JTextField jTextFieldNombreBuscarApoderadoCausa;
    private javax.swing.JTextField jTextFieldNombreBuscarApoderadoTarea;
    private javax.swing.JTextField jTextFieldNombreBuscarApoderadoTramite;
    private javax.swing.JTextField jTextFieldNombreBuscarClienteCausa;
    private javax.swing.JTextField jTextFieldNombreBuscarClienteTramite;
    private javax.swing.JTextField jTextFieldNombreBuscarContraparteCausa;
    private javax.swing.JTextField jTextFieldNombreBuscarContraparteCausa1;
    private javax.swing.JTextField jTextFieldNombreBuscarPersona;
    private javax.swing.JTextField jTextFieldNombreDetallesPersona;
    private javax.swing.JTextField jTextFieldNombreRutaDocumentoPaso;
    private javax.swing.JTextField jTextFieldNombreRutaDocumentoTarea;
    private javax.swing.JTextField jTextFieldNombreRutaDocumentoTramite;
    private javax.swing.JTextField jTextFieldNombreRutaDocumentoTramite1;
    private javax.swing.JTextField jTextFieldNroDocDetallesPersona;
    private javax.swing.JTextField jTextFieldNroMatriculaAltaPersona;
    private javax.swing.JTextField jTextFieldNroMatriculaDetallesPersona;
    private javax.swing.JTextField jTextFieldNumAltaCausa;
    private javax.swing.JTextField jTextFieldNumConsultaCausa;
    private javax.swing.JTextField jTextFieldNumeroAgregarTarea;
    private javax.swing.JTextField jTextFieldNumeroAgregarTramite;
    private javax.swing.JTextField jTextFieldNumeroBuscarAgenda;
    private javax.swing.JTextField jTextFieldNumeroBuscarTramite;
    private javax.swing.JTextField jTextFieldNumeroBusquedaCausa;
    private javax.swing.JTextField jTextFieldNumeroDocumentoAltaPersona;
    private javax.swing.JTextField jTextFieldTelefono2AltaPersona;
    private javax.swing.JTextField jTextFieldTelefono2DetallesPersona;
    private javax.swing.JTextField jTextFieldTelefonoAltaPersona;
    private javax.swing.JTextField jTextFieldTelefonoBuscarApoderadoCausa;
    private javax.swing.JTextField jTextFieldTelefonoBuscarApoderadoTarea;
    private javax.swing.JTextField jTextFieldTelefonoBuscarApoderadoTramite;
    private javax.swing.JTextField jTextFieldTelefonoBuscarClienteCausa;
    private javax.swing.JTextField jTextFieldTelefonoBuscarClienteTramite;
    private javax.swing.JTextField jTextFieldTelefonoBuscarContraparteCausa;
    private javax.swing.JTextField jTextFieldTelefonoBuscarContraparteCausa1;
    private javax.swing.JTextField jTextFieldTelefonoBuscarPersona;
    private javax.swing.JTextField jTextFieldTelefonoDetallesPersona;
    private javax.swing.JTextField jTextFieldTipoBuscarCausa;
    private javax.swing.JTextField jTextFieldTipoCausaOtro;
    private javax.swing.JLabel modificarMovHaber;
    private javax.swing.JLabel modificarrMovDebe;
    private javax.swing.JLabel modificarrMovFecha;
    // End of variables declaration//GEN-END:variables
    PersonaTableModel datosPersonas = new PersonaTableModel();
    MovimientoTableModel datosMovimientos = new MovimientoTableModel();
    TramiteReducidoTableModel datosTramitesReducidos = new TramiteReducidoTableModel();
    CausasReducidoTableModel datosCausasReducidos = new CausasReducidoTableModel();
    Controlador controlador = new Controlador();
    Persona persona;
    Tarea tarea;
    Persona clienteTramite;
    Persona apoderadoTramite;
    Persona encargadoTarea;
    Movimiento movimiento;
    TramiteTableModel datosTamites = new TramiteTableModel();
    Tramite tramite;
    Causa causa;
    DocumentosRelacionadosTramite documentosRelacionados;
    PasoProcesal pasoTramite;
    PasoProcesal pasoAgenda;
    RutasTramitesTableModel datosRutaTramites = new RutasTramitesTableModel();
    RutasTramitesTableModel datosRutaTarea = new RutasTramitesTableModel();
    RutasTramitesTableModel datosRutaPaso = new RutasTramitesTableModel();
    CausaTableModel datosCausas = new CausaTableModel();
    MovimientoTableModel datosCaja = new MovimientoTableModel();
    AgendaTableModel datosAgenda = new AgendaTableModel();
    AgendaTableModel datosAgendaAlerta = new AgendaTableModel();
    PasoProcesalTableModel datosPasosAgenda = new PasoProcesalTableModel();
    PasoProcesalTableModel datosPasosAgendaAlerta = new PasoProcesalTableModel();
    PasoProcesalTableModel datosPasoProcesal = new PasoProcesalTableModel();
    PasoProcesalTramiteTableModel datosPasoTramite = new PasoProcesalTramiteTableModel();
    TramiteReducidoTableModel tramitesCausa = new TramiteReducidoTableModel();
    TramiteReducidoTableModel datosTramitesReducidosEnCausa = new TramiteReducidoTableModel();
    JTable tablaPasos = new JTable();

    /**
     * Este método permite mostrar el mensaje de una excepción en un dialog
     * @param e excepción a ser mostrada en pantalla
     */
    private void mostrarError(Exception e) {
        if (e.getMessage() != null) {
            this.jLabelTextoError.setText(e.getMessage());
        } else {
            this.jLabelTextoError.setText("Se produjo un error, cierre el programa y compruebe la conexión al servidor");
        }
        this.jDialogError.setVisible(true);
    }

    /**
     * Este método permite mostrar un mensaje de una advertencia en un dialog
     * @param msj mensaje a ser mostrado en el dialog de advertencia
     */
    private void mostrarAdvertencia(String msj) {
        this.jLabelTextoAdvertencia.setText(msj);
        this.jDialogAdvertencia.setVisible(true);
    }

    /**
     * Este método actualiza la lista de personas con la información de la base 
     * de datos
     */
    private void actualizarPersonas() {
        try {
            this.datosPersonas.setData(this.controlador.listarPersonas());
            this.jTablePersonas.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este método actualiza la lista de CLIENTES con la información de la base 
     * de datos
     */
    private void actualizarCliente() {
        try {
            this.datosPersonas.setData(this.controlador.listarPersonas());
            this.jTableBuscarClienteTramite.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este método actualiza la lista de APODERADOS con la información de la base 
     * de datos
     */
    private void actualizarApoderado() {
        try {
            this.datosPersonas.setData(this.controlador.listarAbogados());
            this.jTableBuscarApoderadoTramite.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este método actualiza la lista de Encargados con la información de la base 
     * de datos
     */
    private void actualizarEncargadoTarea() {
        try {
            this.datosPersonas.setData(this.controlador.listarAbogados());
            this.jTableBuscarApoderadoTarea.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este método actualiza la lista de movimientos
     */
    private void actualizarMovimientos() {
        try {
            this.datosMovimientos.setData(this.persona.getMovimientos());
            this.jTableCuentaCorriente.updateUI();
            double[] totales = this.persona.getTotalesMovimientos();
            this.jLabelTotalDebeMovimientos.setText("$ " + Double.toString(totales[0]));
            this.jLabelTotalHaberMovimientos.setText("$ " + Double.toString(totales[1]));
            this.jLabelTotalMovimientos.setText("$ " + Double.toString(totales[2]));
            if (totales[2] < 0) {
                this.jLabelTotalMovimientos.setForeground(Color.RED);
            } else {
                this.jLabelTotalMovimientos.setForeground(Color.BLACK);
            }
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este método carga en un nuevo objeto Persona todos los datos que se 
     * muestran en el dialog Alta Persona
     * @throws UIException 
     */
    private void cargarPersona() throws UIException {
        this.persona.setNombre(this.jTextFieldNombreAltaPersona.getText());
        this.persona.setTipoDocumento(this.jComboBoxTipoDocumentoAltaPersona.getSelectedItem().toString());
        this.persona.setDireccion(this.jTextFieldDireccionAltaPersona.getText());
        this.persona.setTelefono(this.jTextFieldTelefonoAltaPersona.getText());
        this.persona.setTelefono2(this.jTextFieldTelefono2AltaPersona.getText());
        this.persona.setEmail(this.jTextFieldEmailAltaPersona.getText());
        this.persona.setCodigoPostal(this.jTextFieldCodPostalAltaPersona.getText());
        this.persona.setLocalidad(this.jTextFieldLocalidadAltaPersona.getText());
        if (this.jComboBoxTipoPersonaAltaPersona.getSelectedItem().equals("Persona Fisica")) {
            this.persona.setFisica(true);
        }
        if (this.jComboBoxAbogadoAltaPersona.getSelectedItem().equals("Si")) {
            this.persona.setNumeroMatricula(this.jTextFieldNroMatriculaAltaPersona.getText());
        }
        this.validarDocumento(this.jTextFieldNumeroDocumentoAltaPersona.getText(), this.jComboBoxTipoPersonaAltaPersona.getSelectedItem().equals("Persona Fisica"));
        this.persona.setNumeroDocumento(this.jTextFieldNumeroDocumentoAltaPersona.getText());
        this.persona.setActivo(true);
    }

    /**
     * Este método muestra todos los datos que se encuentran en el atributo 
     * persona de esta clase en el dialog de Detalles de Persona
     */
    private void mostrarPersona() {
        if (persona.isFisica()) {
            this.jComboBoxTipoDetallesPersona.setSelectedIndex(0);
            this.jLabelAbogadoDetallesPersona.setVisible(true);
            this.jComboBoxAbogadoDetallesPersona.setVisible(true);
            if (persona.getNumeroMatricula() != null) {
                this.jTextFieldNroMatriculaDetallesPersona.setVisible(true);
                this.jLabelNroMatriculaDetallesPersona.setVisible(true);
                this.jTextFieldNroMatriculaDetallesPersona.setText(persona.getNumeroMatricula());
                this.jComboBoxAbogadoDetallesPersona.setSelectedIndex(1);
            } else {
                this.jTextFieldNroMatriculaDetallesPersona.setVisible(false);
                this.jLabelNroMatriculaDetallesPersona.setVisible(false);
                this.jComboBoxAbogadoDetallesPersona.setSelectedIndex(0);
            }
        } else {
            this.jComboBoxTipoDetallesPersona.setSelectedIndex(1);
            this.jLabelAbogadoDetallesPersona.setVisible(false);
            this.jComboBoxAbogadoDetallesPersona.setVisible(false);
            this.jTextFieldNroMatriculaDetallesPersona.setVisible(false);
            this.jLabelNroMatriculaDetallesPersona.setVisible(false);
        }
        this.jTextFieldNombreDetallesPersona.setText(this.persona.getNombre());
        this.jComboBoxTipoDocDetallesPersona.setSelectedItem(this.persona.getTipoDocumento());
        this.jTextFieldNroDocDetallesPersona.setText(this.persona.getNumeroDocumento());
        this.jTextFieldDireccionDetallesPersona.setText(this.persona.getDireccion());
        this.jTextFieldTelefonoDetallesPersona.setText(this.persona.getTelefono());
        this.jTextFieldTelefono2DetallesPersona.setText(this.persona.getTelefono2());
        this.jTextFieldEmailDetallesPersona.setText(this.persona.getEmail());
        this.jTextFieldCodPostalDetallesPersona.setText(this.persona.getCodigoPostal());
        this.jTextFieldLocalidadDetallesPersona.setText(this.persona.getLocalidad());
        this.jDialogMovimientoPersona.setVisible(false);
        this.actualizarMovimientos();
        this.actualizarTramitesReducidos();
        this.actualizarCausasReducidos();
    }

    /**
     * Este método permite cambiar el estado (habilitados/inhabilitados) de
     * todos los campos de la persona que se muestran en el dialog Detalles de 
     * Persona
     * @param estado true o false dependiendo del estado deseado
     */
    private void cambiarEstadoDatosPersona(boolean estado) {
        this.jButtonModificarDetallesPersona.setVisible(!estado);
        this.jComboBoxTipoDetallesPersona.setEnabled(estado);
        this.jTextFieldNombreDetallesPersona.setEnabled(estado);
        if (this.jComboBoxTipoDetallesPersona.getSelectedItem().equals("Persona Fisica")) {
            this.jComboBoxTipoDocDetallesPersona.setEnabled(estado);
        }
        this.jTextFieldNroDocDetallesPersona.setEnabled(estado);
        this.jTextFieldDireccionDetallesPersona.setEnabled(estado);
        this.jTextFieldTelefonoDetallesPersona.setEnabled(estado);
        this.jTextFieldTelefono2DetallesPersona.setEnabled(estado);
        this.jTextFieldEmailDetallesPersona.setEnabled(estado);
        this.jTextFieldCodPostalDetallesPersona.setEnabled(estado);
        this.jTextFieldLocalidadDetallesPersona.setEnabled(estado);
        this.jButtonGuardarDetallesPersona.setVisible(estado);
        this.jComboBoxAbogadoDetallesPersona.setEnabled(estado);
        this.jTextFieldNroMatriculaDetallesPersona.setEnabled(estado);
    }

    /**
     * Este método permite cargar en el atributo persona de esta clase todos los
     * datos que se encuentran en el dialog Detalles de Persona
     * @throws UIException 
     */
    private void cargarPersona2() throws UIException {
        this.persona.setNombre(this.jTextFieldNombreDetallesPersona.getText());
        this.persona.setTipoDocumento(this.jComboBoxTipoDocDetallesPersona.getSelectedItem().toString());
        this.persona.setDireccion(this.jTextFieldDireccionDetallesPersona.getText());
        this.persona.setTelefono(this.jTextFieldTelefonoDetallesPersona.getText());
        this.persona.setTelefono2(this.jTextFieldTelefono2DetallesPersona.getText());
        this.persona.setEmail(this.jTextFieldEmailDetallesPersona.getText());
        this.persona.setCodigoPostal(this.jTextFieldCodPostalDetallesPersona.getText());
        this.persona.setLocalidad(this.jTextFieldLocalidadDetallesPersona.getText());
        this.persona.setFisica(this.jComboBoxTipoDetallesPersona.getSelectedItem().equals("Persona Fisica"));
        if (this.jComboBoxAbogadoDetallesPersona.getSelectedItem().equals("Si")) {
            this.persona.setNumeroMatricula(this.jTextFieldNroMatriculaDetallesPersona.getText());
        } else {
            this.persona.setNumeroMatricula(null);
        }
        this.validarDocumento(this.jTextFieldNroDocDetallesPersona.getText(), this.jComboBoxTipoDetallesPersona.getSelectedItem().equals("Persona Fisica"));
        this.persona.setNumeroDocumento(this.jTextFieldNroDocDetallesPersona.getText());
        this.persona.setActivo(true);
    }

    /**
     * Este método muestra todos los datos que se encuentran en el atributo 
     * movimiento de esta clase en el panel de Modificar Movimiento
     */
    private void mostrarMovimiento() {
        this.jDateChooserFechaMovimiento.setDate(this.movimiento.getFecha());
        this.jTextFieldDebeMovimiento.setText(Double.toString(this.movimiento.getDebe()));
        this.jTextFieldHaberMovimiento.setText(Double.toString(this.movimiento.getHaber()));
        this.jTextAreaDescripcionMovimiento.setText(this.movimiento.getDescripcion());
    }

    private void mostrarMovimiento2() {
        this.jDateChooserFechaMovimiento3.setDate(this.movimiento.getFecha());
        this.jTextFieldDebeMovimiento3.setText(Double.toString(this.movimiento.getDebe()));
        this.jTextFieldHaberMovimiento3.setText(Double.toString(this.movimiento.getHaber()));
        this.jTextAreaDescripcionMovimiento3.setText(this.movimiento.getDescripcion());
    }

    private void mostrarCausa() {
        this.jTextFieldNumConsultaCausa.setText(String.valueOf(this.causa.getNumero()));
        this.jTextFieldCaratulaConsultaCausa.setText(this.causa.getCaratula());
        this.jDateChooserFechaInicioConsultaCausa.setDate(this.causa.getFechaInicio());
        this.jDateChooserFechaCierreConsultaCausa.setDate(this.causa.getFechaCierre());
        if (this.causa.getAbogadoApoderado() != null) {
            this.jTextFieldAbogadoApoderadoConsultaCausa.setText(this.causa.getAbogadoApoderado().getNombre());
        } else {
            this.jTextFieldAbogadoApoderadoConsultaCausa.setText("");
        }
        if (this.causa.getAbogadoContraparte() != null) {
            this.jTextFieldAbogadoContraparteConsultaCausa.setText(this.causa.getAbogadoContraparte().getNombre());
        } else {
            this.jTextFieldAbogadoContraparteConsultaCausa.setText("");
        }
        if (this.causa.getCliente() != null) {
            this.jTextFieldClienteConsultaCausa.setText(this.causa.getCliente().getNombre());
        } else {
            this.jTextFieldClienteConsultaCausa.setText("");
        }
        if (this.causa.getContraparte() != null) {
            this.jTextFieldContraparteConsultaCausa.setText(this.causa.getContraparte().getNombre());
        } else {
            this.jTextFieldContraparteConsultaCausa.setText("");
        }
        if (this.causa.getTipo().equals("Civil")  | this.causa.getTipo().equals("Familia") | this.causa.getTipo().equals("Laboral") | this.causa.getTipo().equals("Penal"))  {
            this.jComboBoxTipoConsultaCausa.setSelectedItem(this.causa.getTipo());
        this.jTextFieldTipoCausaOtro.setVisible(false);}
        else {this.jComboBoxTipoConsultaCausa.setSelectedIndex(4);
        this.jTextFieldTipoCausaOtro.setText(this.causa.getTipo());
        this.jTextFieldTipoCausaOtro.setEnabled(false);
        this.jTextFieldTipoCausaOtro.setVisible(true); }
        this.jTextFieldJuzgadoConsultaCausa.setText(this.causa.getJuzgado());
        this.jTextAreaDescripcionConsultaCausa.setText(this.causa.getDescripcion());
        this.actualizarPasos(jTableConsultaCausaPasos);
        this.jTextFieldNumConsultaCausa.setEnabled(false);
        this.jTextFieldCaratulaConsultaCausa.setEnabled(false);
        this.jTextFieldAbogadoApoderadoConsultaCausa.setEnabled(false);
        this.jTextFieldAbogadoContraparteConsultaCausa.setEnabled(false);
        this.jTextFieldClienteConsultaCausa.setEnabled(false);
        this.jTextFieldContraparteConsultaCausa.setEnabled(false);
        this.jDateChooserFechaInicioConsultaCausa.setEnabled(false);
        this.jDateChooserFechaCierreConsultaCausa.setEnabled(false);
        this.jComboBoxTipoConsultaCausa.setEnabled(false);
        this.jTextFieldJuzgadoConsultaCausa.setEnabled(false);
        this.jTextAreaDescripcionConsultaCausa.setEnabled(false);
        this.jButtonAbogadoApoderadoConsultaCausa.setEnabled(false);
        this.jButtonAbogadoContraparteConsultaCausa.setEnabled(false);
        this.jButtonClienteConsultaCausa.setEnabled(false);
        this.jButtonContraparteConsultaCausa.setEnabled(false);
        this.jButtonConsultaCausaAgregarPaso.setEnabled(false);
        this.jTableConsultaCausaPasos.getSelectionModel().clearSelection();
        this.jTableConsultaCausaPasos.setEnabled(false);
        this.jButtonConfirmarConsultaCausa.setText("Modificar Causa");

    }

    private void borrarDatosCausa() {
        this.jTextFieldNumAltaCausa.setText("");
        this.jTextFieldCaratulaNuevaCausa.setText("");
        this.jDateChooserFechaInicioAltaCausa.setDate(null);
        this.jDateChooserFechaCierreAltaCausa.setDate(null);
        this.jTextFieldAbogadoApoderado.setText("");
        this.jTextFieldAbogadoContraparte.setText("");
        this.jTextFieldCliente.setText("");
        this.jTextFieldContraparte.setText("");
        this.jComboBoxTipoAltaCausa.setSelectedItem("");
        this.jTextFieldJuzgadoAltaCausa.setText("");
        this.jTextAreaDescripcionAltaCausa.setText("");
        this.jComboBoxTipoAltaCausa.setSelectedIndex(0);
        this.jTextFieldIngreseTipo.setText("");


    }

    /**
     * Este método carga en un nuevo objeto Movimiento todos los datos que se 
     * muestran en el panel de modificar o agregar movimiento
     * @throws UIException 
     */
    private void cargarMovimiento() throws UIException {
        if (this.jDateChooserFechaMovimiento.getDate() == null) {
            throw new UIException("La fecha es incorrecta");
        }
        try {
            this.movimiento.setFecha(Fecha.convertirASQL(this.jDateChooserFechaMovimiento.getDate()));
        } catch (Exception ex) {
            throw new UIException("La fecha es incorrecta", ex);
        }
        try {
            this.movimiento.setDebe(Double.parseDouble(this.jTextFieldDebeMovimiento.getText()));
        } catch (Exception ex) {
            throw new UIException("El campo Debe debe ser un número", ex);
        }
        try {
            this.movimiento.setHaber(Double.parseDouble(this.jTextFieldHaberMovimiento.getText()));
        } catch (Exception ex) {
            throw new UIException("El campo Haber debe ser un número", ex);
        }
        this.movimiento.setDescripcion(this.jTextAreaDescripcionMovimiento.getText());
    }

    /**
     * Este método carga en un nuevo objeto Movimiento todos los datos que se 
     * muestran en el panel de Alta Movimiento en la pestaña Caja
     * @throws UIException 
     */
    private void cargarMovimiento2() throws UIException {
        if (this.jDateChooserFechaMovimiento2.getDate() == null) {
            throw new UIException("La fecha es incorrecta");
        }
        try {
            this.movimiento.setFecha(Fecha.convertirASQL(this.jDateChooserFechaMovimiento2.getDate()));
        } catch (Exception ex) {
            throw new UIException("La fecha es incorrecta", ex);
        }
        try {
            this.movimiento.setDebe(Double.parseDouble(this.jTextFieldDebeMovimiento2.getText()));
        } catch (Exception ex) {
            throw new UIException("El campo Debe debe ser un número", ex);
        }
        try {
            this.movimiento.setHaber(Double.parseDouble(this.jTextFieldHaberMovimiento2.getText()));
        } catch (Exception ex) {
            throw new UIException("El campo Haber debe ser un número", ex);
        }
        this.movimiento.setDescripcion(this.jTextAreaDescripcionMovimiento2.getText());
    }

    /**
     * Este método carga en un nuevo objeto Movimiento todos los datos que se 
     * muestran en el panel de Modificar Movimiento en la pestaña Caja
     * @throws UIException 
     */
    private void cargarMovimiento3() throws UIException {
        if (this.jDateChooserFechaMovimiento3.getDate() == null) {
            throw new UIException("La fecha es incorrecta");
        }
        try {
            this.movimiento.setFecha(Fecha.convertirASQL(this.jDateChooserFechaMovimiento3.getDate()));
        } catch (Exception ex) {
            throw new UIException("La fecha es incorrecta", ex);
        }
        try {
            this.movimiento.setDebe(Double.parseDouble(this.jTextFieldDebeMovimiento3.getText()));
        } catch (Exception ex) {
            throw new UIException("El campo Debe debe ser un número", ex);
        }
        try {
            this.movimiento.setHaber(Double.parseDouble(this.jTextFieldHaberMovimiento3.getText()));
        } catch (Exception ex) {
            throw new UIException("El campo Haber debe ser un número", ex);
        }
        this.movimiento.setDescripcion(this.jTextAreaDescripcionMovimiento3.getText());
    }

    /**
     * Este método permite validar el documento como dni, le, lc, pasaporte o 
     * cuit
     * @throws UIException 
     */
    private void validarDocumento(String documento, boolean fisica) throws UIException {
        if (fisica) {
            if (documento.length() != 7 && documento.length() != 8) {
                throw new UIException("El número de documento debe ser un número de 7 u 8 dígitos");
            }
            try {
                Integer.parseInt(documento);
            } catch (Exception ex) {
                throw new UIException("El número de documento debe ser un número de 7 u 8 dígitos", ex);
            }
        } else {
            try {
                if (!documento.substring(2, 3).equals("-") || !documento.substring(11, 12).equals("-")) {
                    throw new UIException("El cuit debe poseer el formato XX-XXXXXXX-X");
                }
                String[] partes = documento.split("-");
                if (partes[0].length() != 2 || partes[1].length() != 8 || partes[2].length() != 1) {
                    throw new UIException("El cuit debe poseer el formato XX-XXXXXXX-X");
                }
                Integer.parseInt(partes[0]);
                Integer.parseInt(partes[1]);
                Integer.parseInt(partes[2]);
            } catch (Exception Exception) {
                throw new UIException("El cuit debe poseer el formato XX-XXXXXXX-X");
            }
        }
    }

    /**
     * Este método setea el estado inicial del dialog de alta de persona
     */
    private void estadoInicialAltaPersona() {
        this.jLabelNroMatriculaAltaPersona.setVisible(false);
        this.jTextFieldNroMatriculaAltaPersona.setVisible(false);
        this.jComboBoxTipoPersonaAltaPersona.setSelectedIndex(0);
        this.jTextFieldNombreAltaPersona.setText("");
        this.jComboBoxTipoDocumentoAltaPersona.setSelectedIndex(0);
        this.jTextFieldNumeroDocumentoAltaPersona.setText("");
        this.jTextFieldDireccionAltaPersona.setText("");
        this.jTextFieldTelefonoAltaPersona.setText("");
        this.jTextFieldTelefono2AltaPersona.setText("");
        this.jTextFieldEmailAltaPersona.setText("");
        this.jTextFieldCodPostalAltaPersona.setText("");
        this.jTextFieldLocalidadAltaPersona.setText("");
        this.jComboBoxTipoPersonaAltaPersona.setSelectedIndex(0);
        this.jTextFieldNroMatriculaAltaPersona.setText("");
    }

    /**
     * Este metos permite setear todo los valores de un tramite
     */
    public void cargarTramite() {
        tramite.setNumero(this.jTextFieldNumeroAgregarTramite.getText());
        tramite.setFechaInicio(Fecha.convertirASQL(jDateChooserFechaInicioAgregarTramite.getDate()));
        tramite.setFechaFin(Fecha.convertirASQL(jDateChooserFechaFinAgregarTramite.getDate()));
        tramite.setDescripcion(this.jTextAreaDescripcionAgregarTramite.getText());
    }

    /**
     * Este metodo toma la tarea y modifica todos los valores que fueron cambiados 
     */
    public void modificarTarea() {
        String hora;
        String minutos;
        tarea.setNumero(this.jTextFieldNumeroAgregarTarea.getText());
        tarea.setFecha(Fecha.convertirASQL(this.jDateChooserFechaRealizacionTarea.getDate()));
        tarea.setDescripcion(this.jTextAreaDescripcionTarea.getText());
        tarea.setEncargado(this.encargadoTarea);
        tarea.setLugar(this.jTextFieldLugarAgregarTarea.getText());
        tarea.setUrlDocumentosRelacionados(this.listaDocumentosRelacionadosTramiteTarea);
        hora = String.valueOf(this.jSpinFieldHoraTarea.getValue());
        minutos = String.valueOf(this.jSpinFieldMinutosTarea.getValue());
        if (hora.length() == 1) {
            hora = "0" + hora;
        }
        if (minutos.length() == 1) {
            minutos = "0" + minutos;
        }
        tarea.setHora(hora + ":" + minutos + ":00");

    }

    /**
     * Este método actualiza la lista de personas con la información de la base 
     * de datos
     */
    private void actualizarTramite() {
        try {
            this.datosTamites.setTramite(this.controlador.listarTramites());
            this.jTableListadoTramites.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este metodo permite actualizar la lista de pasos relacionadas
     * a un tramite
     */
    private void actualizarPasosTramite() {
        this.datosPasoTramite.setPasos(this.tramite.getPaso());
        this.jTablePasosTramites.updateUI();
    }

    /**
     * Este metodo permite setear todos los valores en una tarea
     */
    public void cargarTarea() {
        String hora;
        String minutos;
        this.tarea = new Tarea();
        tarea.setNumero(this.jTextFieldNumeroAgregarTarea.getText());
        tarea.setFecha(Fecha.convertirASQL(jDateChooserFechaRealizacionTarea.getDate()));
        hora = String.valueOf(this.jSpinFieldHoraTarea.getValue());
        minutos = String.valueOf(this.jSpinFieldMinutosTarea.getValue());
        if (hora.length() == 1) {
            hora = "0" + hora;
        }
        if (minutos.length() == 1) {
            minutos = "0" + minutos;
        }
        tarea.setHora(hora + ":" + minutos + ":00");
        tarea.setDescripcion(this.jTextAreaDescripcionTarea.getText());
        tarea.setEncargado(encargadoTarea);
        tarea.setLugar(this.jTextFieldLugarAgregarTarea.getText());
        tarea.setUrlDocumentosRelacionados(this.listaDocumentosRelacionadosTramiteTarea);

    }

    /**
     * Este método actualiza la lista de personas con la información de la base 
     * de datos
     */
    private void actualizarTarea() {
        try {
            this.datosAgenda.setTarea(this.controlador.listarTareas());
            this.jTableAgenda.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * lista las tareas que se deben realizar dentro de los proximos 4 dias
     */
    private void listarProximasTareas() {
        try {
            this.actualizarAlertaAgenda();
            this.fechaCambioTarea = (new java.util.Date());
            if (this.datosAgendaAlerta.getRowCount() > 0 | this.datosPasosAgendaAlerta.getRowCount() > 0) {
                this.jDialogAlertaAgenda.setVisible(true);
            }
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este método permite mostrar un mensaje de una confirmación en un dialog
     * @param msj mensaje a ser mostrado en el dialog de confirmación
     */
    private void mostrarConfirmacion(String msj) {
        this.jLabelTextoConfirmacion.setText(msj);
        this.jDialogConfirmacion.setVisible(true);
    }

    /**
     * Cambia el estado de todos los campos que se encuentran en el panel
     * buscar de las personas
     * @param estado nuevo estado de los campos de búsqueda
     */
    private void modificarEstadoPersonasBuscar() {
        this.jComboBoxTipoDocumentoBuscarPersona.setSelectedIndex(0);
        this.jTextFieldDocumentoBuscarPersona.setText("");
        this.jTextFieldNombreBuscarPersona.setText("");
        this.jTextFieldDireccionBuscarPersona.setText("");
        this.jTextFieldTelefonoBuscarPersona.setText("");
        this.jTextFieldEmailBuscarPersona.setText("");
    }

    /**
     * Cambia el estado de todos los campos que se encuentran en el panel
     * buscar de las personas TRAMITES
     * @param estado nuevo estado de los campos de búsqueda
     */
    private void modificarEstadoApoderadoBuscar(boolean estado) {
        this.jComboBoxTipoDocumentoBuscarApoderadoTramite.setSelectedIndex(0);
        this.jTextFieldDocumentoBuscarApoderadoTramite.setText("");
        this.jTextFieldNombreBuscarApoderadoTramite.setText("");
        this.jTextFieldDireccionBuscarApoderadoTramite.setText("");
        this.jTextFieldTelefonoBuscarApoderadoTramite.setText("");
        this.jTextFieldEmailBuscarApoderadoTramite.setText("");
        this.jComboBoxTipoDocumentoBuscarApoderadoTramite.setEnabled(estado);
        this.jTextFieldDocumentoBuscarApoderadoTramite.setEnabled(estado);
        this.jTextFieldNombreBuscarApoderadoTramite.setEnabled(estado);
        this.jTextFieldDireccionBuscarApoderadoTramite.setEnabled(estado);
        this.jTextFieldTelefonoBuscarApoderadoTramite.setEnabled(estado);
        this.jTextFieldEmailBuscarApoderadoTramite.setEnabled(estado);
    }

    /**
     * Cambia el estado de todos los campos que se encuentran en el panel
     * buscar de las personas TRAMITES
     * @param estado nuevo estado de los campos de búsqueda
     */
    private void modificarEstadoClienteBuscar(boolean estado) {
        this.jComboBoxTipoDocumentoBuscarClienteTramite.setSelectedIndex(0);
        this.jTextFieldDocumentoBuscarClienteTramite.setText("");
        this.jTextFieldNombreBuscarClienteTramite.setText("");
        this.jTextFieldDireccionBuscarClienteTramite.setText("");
        this.jTextFieldTelefonoBuscarClienteTramite.setText("");
        this.jTextFieldEmailBuscarClienteTramite.setText("");
        this.jComboBoxTipoDocumentoBuscarClienteTramite.setEnabled(estado);
        this.jTextFieldDocumentoBuscarClienteTramite.setEnabled(estado);
        this.jTextFieldNombreBuscarClienteTramite.setEnabled(estado);
        this.jTextFieldDireccionBuscarClienteTramite.setEnabled(estado);
        this.jTextFieldTelefonoBuscarClienteTramite.setEnabled(estado);
        this.jTextFieldEmailBuscarClienteTramite.setEnabled(estado);
    }

    /**
     * Este método actualiza la lista de personas con la información de la base 
     * de datos que coincide con los criterios de busqueda ingresados
     */
    private void buscarPersonas() {
        try {
            this.datosPersonas.setData(this.controlador.buscarPersonas(this.jComboBoxTipoDocumentoBuscarPersona.getSelectedItem().toString(), this.jTextFieldDocumentoBuscarPersona.getText(), this.jTextFieldNombreBuscarPersona.getText(), this.jTextFieldDireccionBuscarPersona.getText(), this.jTextFieldTelefonoBuscarPersona.getText(), this.jTextFieldEmailBuscarPersona.getText()));
            this.jTablePersonas.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este método actualiza la lista de CLIENTES con la información de la base 
     * de datos que coincide con los criterios de busqueda ingresados
     */
    private void buscarClientes() {
        try {
            this.datosPersonas.setData(this.controlador.buscarPersonas(this.jComboBoxTipoDocumentoBuscarClienteTramite.getSelectedItem().toString(), this.jTextFieldDocumentoBuscarClienteTramite.getText(), this.jTextFieldNombreBuscarClienteTramite.getText(), this.jTextFieldDireccionBuscarClienteTramite.getText(), this.jTextFieldTelefonoBuscarClienteTramite.getText(), this.jTextFieldEmailBuscarClienteTramite.getText()));
            this.jTableBuscarClienteTramite.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este método actualiza la lista de APODERADOS con la información de la base 
     * de datos que coincide con los criterios de busqueda ingresados
     */
    private void buscarApoderado() {
        try {
            this.datosPersonas.setData(this.controlador.buscarAbogados(this.jComboBoxTipoDocumentoBuscarApoderadoTramite.getSelectedItem().toString(), this.jTextFieldDocumentoBuscarApoderadoTramite.getText(), this.jTextFieldNombreBuscarApoderadoTramite.getText(), this.jTextFieldDireccionBuscarApoderadoTramite.getText(), this.jTextFieldTelefonoBuscarApoderadoTramite.getText(), this.jTextFieldEmailBuscarApoderadoTramite.getText()));
            this.jTableBuscarApoderadoTramite.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este método actualiza la lista de Encargados con la información de la base 
     * de datos que coincide con los criterios de busqueda ingresados
     */
    private void buscarEncargadoTerea() {
        try {
            this.datosPersonas.setData(this.controlador.buscarAbogados(this.jComboBoxTipoDocumentoBuscarApoderadoTarea.getSelectedItem().toString(), this.jTextFieldDocumentoBuscarApoderadoTarea.getText(), this.jTextFieldNombreBuscarApoderadoTarea.getText(), this.jTextFieldDireccionBuscarApoderadoTarea.getText(), this.jTextFieldTelefonoBuscarApoderadoTarea.getText(), this.jTextFieldEmailBuscarApoderadoTarea.getText()));
            this.jTableBuscarApoderadoTarea.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Cambia el estado de todos los campos que se encuentran en el panel
     * buscar de los movimientos
     * @param estado nuevo estado de los campos de búsqueda
     */
    private void modificarEstadoMovimientoBuscar() {
        this.jDateChooserFechaBuscarMovimiento.setDate(null);
        this.jTextFieldDebeBuscarMovimiento.setText("");
        this.jTextFieldHaberBuscarMovimiento.setText("");
        this.jTextFieldDescripcionBuscarMovimiento.setText("");
    }

    /**
     * Este método actualiza la lista de personas con la información de la base 
     * de datos que coincide con los criterios de busqueda ingresados
     */
    private void buscarMovimientos() {
        try {
            try {
                if (!this.jTextFieldDebeBuscarMovimiento.getText().equals("")) {
                    Double.parseDouble(this.jTextFieldDebeBuscarMovimiento.getText());
                }
            } catch (Exception ex) {
                throw new UIException("El campo Debe debe ser un número", ex);
            }
            try {
                if (!this.jTextFieldHaberBuscarMovimiento.getText().equals("")) {
                    Double.parseDouble(this.jTextFieldHaberBuscarMovimiento.getText());
                }
            } catch (Exception ex) {
                throw new UIException("El campo Haber debe ser un número", ex);
            }
            this.datosMovimientos.setData(this.persona.buscarMovimientos(Fecha.convertirASQL(this.jDateChooserFechaBuscarMovimiento.getDate()), this.jTextFieldDebeBuscarMovimiento.getText(), this.jTextFieldHaberBuscarMovimiento.getText(), this.jTextFieldDescripcionBuscarMovimiento.getText()));
            this.jTableCuentaCorriente.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este metodo busca el tramite que comience como los parametros
     */
    private void buscarTramite() {
        try {
            this.datosTamites.setTramite(this.controlador.buscarTramite(this.jTextFieldNumeroBuscarTramite.getText(), this.jTextFieldDescripcionBuscarTramite.getText()));
            this.jTableListadoTramites.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este metodo busca las tareas que comience como los parametros
     */
    private void buscarTarea() {
        try {
            this.datosAgenda.setTarea(this.controlador.buscarTarea(this.jTextFieldDescripcionBuscarAgenda.getText(), this.jTextFieldLugarBuscarAgenda.getText(), this.jTextFieldHoraBuscarAgenda.getText(), this.jTextFieldNumeroBuscarAgenda.getText(), Fecha.convertirASQL(this.jDateChooserFechaAgenda.getDate())));
            this.jTableAgenda.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    private void buscarPasosAgenda() {
        try {
            this.datosPasosAgenda.setData(this.controlador.buscarPasoAgenda(this.jTextFieldDescripcionBuscarAgenda.getText(), Fecha.convertirASQL(this.jDateChooserFechaAgenda.getDate())));
            this.jTablePasosAgenda.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este método actualiza la lista de tramites
     */
    private void actualizarTramitesReducidos() {
        try {
            this.datosTramitesReducidos.setData(this.controlador.listarTramites(this.persona.getId()));
            this.jTableTramitesDetallesPersona.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este método actualiza la lista de causas
     */
    private void actualizarCausasReducidos() {
        try {
            this.datosCausasReducidos.setData(this.controlador.listarCausas(this.persona.getId()));
            this.jTableCausasDetallesPersona.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este método muestra todos los datos de un tramite que se encuentra en el
     * atributo tramite de esta clase
     */
    private void mostrarTramite() {
        this.jTextFieldNumeroAgregarTramite.setText(this.tramite.getNumero());
        this.jDateChooserFechaInicioAgregarTramite.setDate(this.tramite.getFechaInicio());
        this.jDateChooserFechaFinAgregarTramite.setDate(this.tramite.getFechaFin());
        this.jTextAreaDescripcionAgregarTramite.setText(this.tramite.getDescripcion());
        if (this.tramite.getApoderado() == null) {
            this.jTextFieldApoderadoAgregarTramite.setText("");
        } else {
            this.jTextFieldApoderadoAgregarTramite.setText(this.tramite.getApoderado().getNombre());
        }
        if (this.tramite.getCliente() == null) {
            this.jTextFieldClienteAgregarTramite.setText("");
        } else {
            this.jTextFieldClienteAgregarTramite.setText(this.tramite.getCliente().getNombre());
        }

        this.actualizarDocumentosRelacionadosTramite();
        this.actualizarPasosTramite();
    }

    private void cambiarEstadoDatosTramite(boolean estado) {
        this.jButtonAgregarDocumentosRelacionadosAgregarTramite.setEnabled(estado);
        this.jButtonCrearDocumentosRelacionadosAgregarTramite.setEnabled(estado);
        this.jButtonAbrirDocumentoTramite.setEnabled(estado);
        this.jButtonEliminarDocumentoRelacionadoTramite.setEnabled(estado);
        this.jButtonAgregarPasosTramite.setEnabled(estado);
        this.jTextFieldNumeroAgregarTramite.setEnabled(estado);
        this.jDateChooserFechaInicioAgregarTramite.setEnabled(estado);
        this.jDateChooserFechaFinAgregarTramite.setEnabled(estado);
        this.jTextAreaDescripcionAgregarTramite.setEnabled(estado);
        this.jTextFieldApoderadoAgregarTramite.setEnabled(estado);
        this.jTextFieldClienteAgregarTramite.setEnabled(estado);
        this.jButtonBuscarApoderadoAgregarTramite.setEnabled(estado);
        this.jButtonBuscarClienteAgregarTramite.setEnabled(estado);
        this.jTablePasosTramites.getSelectionModel().clearSelection();
        this.jTablePasosTramites.setEnabled(estado);
    }

    private void actualizarDocumentosRelacionadosTramite() {
        this.datosRutaTramites.setDirecciones(this.tramite.getUrlDocumentosRelacionados());
        this.jTableDocumentosRelacionadosTramites.updateUI();
    }

    private void cargarCausa() {
        causa.setNumero(this.jTextFieldNumAltaCausa.getText());
        causa.setFechaInicio(Fecha.convertirASQL(jDateChooserFechaInicioAltaCausa.getDate()));
        causa.setFechaCierre(Fecha.convertirASQL(jDateChooserFechaCierreAltaCausa.getDate()));
        causa.setDescripcion(this.jTextAreaDescripcionAltaCausa.getText());
        causa.setJuzgado(this.jTextFieldJuzgadoAltaCausa.getText());
        causa.setCaratula(this.jTextFieldCaratulaNuevaCausa.getText());
        causa.setAbogadoApoderado(this.apoderadoCausa);
        causa.setAbogadoContraparte(this.contraparteCausa1);
        causa.setCliente(this.clienteCausa);
        causa.setContraparte(this.contraparteCausa);

        if (this.jComboBoxTipoAltaCausa.getSelectedItem().toString().equals("Otro")) {
            if (this.jTextFieldIngreseTipo.getText() == null) {
                this.mostrarAdvertencia("Debe elegir un tipo de causa");
            } else {
                causa.setTipo(this.jTextFieldIngreseTipo.getText());
            }
        } else {
            causa.setTipo(this.jComboBoxTipoAltaCausa.getSelectedItem().toString());
        }

    }

    private void actualizarCausa() {
        try {
            this.datosCausas.setData(this.controlador.listarCausas());
            this.jTableCausas.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    private void actualizarPasos(JTable tabla) {
        try {
            this.datosPasoProcesal.setData(this.causa.getPasoProcesals());
            tabla.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    private void cargarPaso() {
        pasoProcesal.setFechaRealizacion(Fecha.convertirASQL(jDateChooserConsultarPasoFechaRealizacion.getDate()));
        pasoProcesal.setFechaVencimiento(Fecha.convertirASQL(jDateChooserConsultarPasoFechaVencimiento.getDate()));
        pasoProcesal.setDescripcion(this.jTextAreaConsultarPasoDescripcion.getText());
        pasoProcesal.setCausa(this.causa);
    }

    /**
     * Este moteodo permite relacionar los pasos a un tramite
     */
    private void cargarPasoTramite() {
        this.pasoTramite.setFechaRealizacion(Fecha.convertirASQL(jDateChooserAgregarPasoFechaRealizacion.getDate()));
        this.pasoTramite.setFechaVencimiento(Fecha.convertirASQL(jDateChooserAgregarPasoFechaVencimiento.getDate()));
        this.pasoTramite.setDescripcion(this.jTextAreaAgregarPasoDescripcion.getText());
    }

    private void cargarCausa2() {
        causa.setNumero(this.jTextFieldNumConsultaCausa.getText());
        causa.setFechaInicio(Fecha.convertirASQL(jDateChooserFechaInicioConsultaCausa.getDate()));
        causa.setFechaCierre(Fecha.convertirASQL(jDateChooserFechaCierreConsultaCausa.getDate()));
        causa.setDescripcion(this.jTextAreaDescripcionConsultaCausa.getText());
        
        if (this.jComboBoxTipoConsultaCausa.getSelectedItem().toString().equals("Otro")) {
            if (this.jTextFieldTipoCausaOtro.getText() == null) {
                this.mostrarAdvertencia("Debe elegir un tipo de causa");
            } else {
                causa.setTipo(this.jTextFieldTipoCausaOtro.getText());
            }
        } else {
            causa.setTipo(this.jComboBoxTipoConsultaCausa.getSelectedItem().toString());
        }
        
        causa.setJuzgado(this.jTextFieldJuzgadoConsultaCausa.getText());
        causa.setCaratula(this.jTextFieldCaratulaConsultaCausa.getText());
        if (this.apoderadoCausa != null) {
            causa.setAbogadoApoderado(this.apoderadoCausa);
        }
        if (this.contraparteCausa != null) {
            causa.setAbogadoContraparte(this.contraparteCausa1);
        }
        if (this.clienteCausa != null) {
            causa.setCliente(this.clienteCausa);
        }
        if (this.contraparteCausa != null) {
            causa.setContraparte(this.contraparteCausa);
        }
    }

    /**
     * Este metodo se invoca cuando se presiona una fila de la tabla
     * de documentos relacionados, y lo que hace es abrir el documento seleccionado
     * independientemente de la extension que tenga
     * 
     */
    private void abrirDocumentoRelacionado(JTable tabla, RutasTramitesTableModel datosRuta) {
        try {
            this.documentosRelacionados = new DocumentosRelacionadosTramite();
            this.documentosRelacionados.setUrlDocumentosRelacionados(datosRuta.getElementAt(tabla.getSelectedRow()).getUrlDocumentosRelacionados());
            String ruta = this.documentosRelacionados.getUrlDocumentosRelacionados();
            this.execute(ruta);
        } catch (Exception e) {
            this.mostrarError(e);
        }
    }
    
    public void execute(String mensaje) {
        try {
            File file = new File(mensaje);
            Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL " + file.getAbsolutePath());
        } catch (Exception e) {
            this.mostrarError(e);
        }
    }

    /**
     * Este metodo permite abrir un jfilechooser de manera que se pueda seleccionar
     * el docuemnto que se desea agregar a la tabla de documentos
     * @param datosRuta
     * @param tabla 
     */
    private void agregarDocuemtosRelacionados(RutasTramitesTableModel datosRuta, JTable tabla, List<DocumentosRelacionadosTramite> lista) {
        try {
            this.documentosRelacionados = new DocumentosRelacionadosTramite();
            FileSystemView fsv = null;
            JFileChooser fileChooser = new JFileChooser(fsv);
            int status = fileChooser.showSaveDialog(null);
            if (status == JFileChooser.APPROVE_OPTION) {
                String ruta = fileChooser.getSelectedFile().getAbsolutePath();
                this.documentosRelacionados.setUrlDocumentosRelacionados(ruta);
                lista.add(this.documentosRelacionados);
                tabla.updateUI();
            } else if (status == JFileChooser.CANCEL_OPTION) {
            }
        } catch (Exception e) {
            this.mostrarError(e);
        }

    }

    private void crearDocumentosRelacionados(JTextField nombreCarpeta, JTextField nombreDocumento, JTextField numeroTramiteCausa, RutasTramitesTableModel datosRutas, JTable tabla, List<DocumentosRelacionadosTramite> lista, JDialog dialog) {
        try {
            this.documentosRelacionados = new DocumentosRelacionadosTramite();
           
            //Directorio destino para las descargas
            String sep = File.separator;
//            String fol = sep + sep + "PC_ARTURO" + sep + "Mis documentos" + sep + "Estudio" + sep + "";
            String fol = "C:" + sep + "Estudio" + sep;
            File dir1 = new File(fol);
            if (!dir1.exists()) {
                if (!dir1.mkdir()) {
                    return;
                }
            }
//            String folder = sep + sep + "PC_ARTURO" + sep + "Mis documentos" + sep + "Estudio" + sep + "" + nombreCarpeta.getText();
            String folder = "C:" + sep + "Estudio" + sep + "" + nombreCarpeta.getText();
            //Crea el directorio de destino en caso de que no exista
            File dir = new File(folder);
            if (!dir.exists()) {
                if (!dir.mkdir()) {
                    return;
                }
            }
            
            String folder2 = "C:" + sep + "Estudio" + sep + nombreCarpeta.getText() + sep + numeroTramiteCausa.getText();
            File dir2 = new File(folder2);
            if (!dir2.exists()) {
                if (!dir2.mkdir()) {
                    return;
                }
            }
            
            String ruta = "C:" + sep + "Estudio" + sep + nombreCarpeta.getText() + sep + numeroTramiteCausa.getText() + sep + nombreDocumento.getText() + ".doc";
            File archivo = new File(ruta);
            
            if (archivo.exists()) {
                throw new UIException("El archivo ya existe. Ingrese otro nombre.");
            } 
            Ole32.CoInitialize();
            DispatchPtr app = new DispatchPtr("Word.Application");
            app.put("Visible", true);
            DispatchPtr docs = (DispatchPtr) app.get("Documents");
            DispatchPtr doc = (DispatchPtr) docs.invoke("Add");
            doc.invoke("SaveAs", new File(ruta).getAbsolutePath());
            documentosRelacionados.setUrlDocumentosRelacionados(ruta);//setea la url al documento relacionado
            datosRutas.agregarDireccion(documentosRelacionados);//agrega la direccion a la tabla
            tabla.updateUI();//actualiza
            this.controlador.guardarDocumentosRelacionadosTramite(documentosRelacionados);//guarla el nuevo documento relacionado
            Ole32.CoUninitialize();
            dialog.setVisible(false);
        } catch (Exception e) {
            this.mostrarError(e);
        }
    }

    private void actualizarTramitesReducidos2() {
        throw new UnsupportedOperationException("Not yet implemented");
    }

    private void mostrarPaso() {
        this.jTextAreaConsultarPasoDescripcion.setText(this.pasoProcesal.getDescripcion());
        this.jDateChooserConsultarPasoFechaRealizacion.setDate(this.pasoProcesal.getFechaRealizacion());
        this.jDateChooserConsultarPasoFechaVencimiento.setDate(this.pasoProcesal.getFechaVencimiento());
        this.datosRutaPaso.setDirecciones(this.pasoProcesal.getUrlDocumentosRelacionadosPaso());
    }

    /**
     * Este metodo permite abrir un jfilechooser de manera que se pueda seleccionar
     * el docuemnto que se desea agregar a la tabla de documentos
     * @param datosRuta
     * @param tabla 
     */
    private void agregarDocumentosRelacionados2(RutasTramitesTableModel datosRuta, JTable tabla, List<DocumentosRelacionadosTramite> lista) {
        try {
            this.documentosRelacionados = new DocumentosRelacionadosTramite();
            FileSystemView fsv = null;
            JFileChooser fileChooser = new JFileChooser(fsv);
            int status = fileChooser.showSaveDialog(null);
            if (status == JFileChooser.APPROVE_OPTION) {
                String archivo = fileChooser.getSelectedFile().getAbsolutePath();
                String ruta = archivo;
                this.documentosRelacionados.setUrlDocumentosRelacionados(ruta);
                datosRuta.agregarDireccion(documentosRelacionados);
                tabla.updateUI();

                this.controlador.guardarDocumentosRelacionadosTramite(documentosRelacionados);
                lista.add(documentosRelacionados);
            } else if (status == JFileChooser.CANCEL_OPTION) {
            }
        } catch (Exception e) {
            this.mostrarError(e);
        }

    }

    private void buscarCausa() {
        try {

            this.datosCausas.setData(this.controlador.buscarCausas(this.jTextFieldNumeroBusquedaCausa.getText(), this.jTextFieldTipoBuscarCausa.getText(), this.jTextFieldJuzgadoBuscarCausa.getText(), this.jTextFieldDescripcionBuscarCausa.getText(), this.jTextFieldCaratulaBuscarCausa.getText(), Fecha.convertirASQL(this.jDateChooserInicioBuscarCausa.getDate()), Fecha.convertirASQL(this.jDateChooserCierreBuscarCausa.getDate())));
            this.jTableCausas.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    private void mostrarPasoTramite() {
        this.jDateChooserAgregarPasoFechaRealizacion.setDate(this.pasoTramite.getFechaRealizacion());
        this.jDateChooserAgregarPasoFechaVencimiento.setDate(this.pasoTramite.getFechaVencimiento());
        this.jTextAreaAgregarPasoDescripcion.setText(this.pasoTramite.getDescripcion());
        this.actualizarDocumentosRelacionadosPasoTramite();
    }

    private void mostrarPasoAgenda() {
        this.jDateChooserAgregarPasoFechaRealizacion.setDate(this.pasoAgenda.getFechaRealizacion());
        this.jDateChooserAgregarPasoFechaVencimiento.setDate(this.pasoAgenda.getFechaVencimiento());
        this.jTextAreaAgregarPasoDescripcion.setText(this.pasoAgenda.getDescripcion());
        this.actualizarDocumentosRelacionadosPasoAgenda();
    }

    private void cambiarEstadoDatosPasoTramite(boolean estado) {
        this.jDateChooserAgregarPasoFechaRealizacion.setEnabled(estado);
        this.jDateChooserAgregarPasoFechaVencimiento.setEnabled(estado);
        this.jTextAreaAgregarPasoDescripcion.setEnabled(estado);
        this.jButtonAgregarDocumentoPaso.setEnabled(estado);
        this.jButtonCrearDocumentoPaso.setEnabled(estado);
        this.jButtonEliminarDocumentosPAso.setEnabled(estado);
    }

    /**
     * Este método actualiza la lista de movimientos de la caja con la 
     * información de la base de datos que coincide con los criterios de 
     * busqueda ingresados
     */
    private void buscarMovimientosCaja() {
        try {
            try {
                if (!this.jTextFieldDebeBuscarMovimientoCaja.getText().equals("")) {
                    Double.parseDouble(this.jTextFieldDebeBuscarMovimientoCaja.getText());
                }
            } catch (Exception ex) {
                throw new UIException("El campo Debe debe ser un número", ex);
            }
            try {
                if (!this.jTextFieldHaberBuscarMovimientoCaja.getText().equals("")) {
                    Double.parseDouble(this.jTextFieldHaberBuscarMovimientoCaja.getText());
                }
            } catch (Exception ex) {
                throw new UIException("El campo Haber debe ser un número", ex);
            }
            this.datosCaja.setData(this.controlador.buscarMovimientosCaja(Fecha.convertirASQL(this.jDateChooserFechaBuscarMovimientoCaja.getDate()), this.jTextFieldDebeBuscarMovimientoCaja.getText(), this.jTextFieldHaberBuscarMovimientoCaja.getText(), this.jTextFieldDescripcionBuscarMovimientoCaja.getText()));
            this.jTableCaja.updateUI();
            String[] totales = this.controlador.getTotalesMovimientosCaja(Fecha.convertirASQL(this.jDateChooserFechaBuscarMovimientoCaja.getDate()), this.jTextFieldDebeBuscarMovimientoCaja.getText(), this.jTextFieldHaberBuscarMovimientoCaja.getText(), this.jTextFieldDescripcionBuscarMovimientoCaja.getText());
            this.jLabelTotalDebeMovimientosCaja.setText("$ " + totales[0]);
            this.jLabelTotalHaberMovimientosCaja.setText("$ " + totales[1]);
            this.jLabelTotalMovimientosCaja.setText("$ " + totales[2]);
            if (Double.parseDouble(totales[2]) < 0) {
                this.jLabelTotalMovimientosCaja.setForeground(Color.RED);
            } else {
                this.jLabelTotalMovimientosCaja.setForeground(Color.BLACK);
            }
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Cambia el estado de todos los campos que se encuentran en el panel
     * buscar de los movimientos de la caja
     * @param estado nuevo estado de los campos de búsqueda
     */
    private void modificarEstadoMovimientoBuscarCaja() {
        this.jDateChooserFechaBuscarMovimientoCaja.setDate(null);
        this.jTextFieldDebeBuscarMovimientoCaja.setText("");
        this.jTextFieldHaberBuscarMovimientoCaja.setText("");
        this.jTextFieldDescripcionBuscarMovimientoCaja.setText("");
    }

    private void actualizarDocumentosRelacionadosPasoTramite() {
        this.datosRutaPaso.setDirecciones(this.pasoTramite.getUrlDocumentosRelacionadosPaso());
        this.jTableDocumentosRelacionadosPaso.updateUI();
    }

    private void actualizarDocumentosRelacionadosPasoAgenda() {
        this.datosRutaPaso.setDirecciones(this.pasoAgenda.getUrlDocumentosRelacionadosPaso());
        this.jTableDocumentosRelacionadosPaso.updateUI();
    }

    private void eliminarDocuemntosRelacionados(RutasTramitesTableModel datosRuta, JTable tabla) {
        this.controlador.eliminarElementosRelacionados(datosRuta.getElementAt(tabla.getSelectedRow()));
        datosRuta.borrar(datosRuta.getElementAt(tabla.getSelectedRow()));
        tabla.updateUI();
        this.mostrarConfirmacion("Documento eliminado correctamente.");
    }

    private void guardarTramite() {
        this.cargarTramite();
        this.controlador.guardarTramite(this.tramite);
        Iterator<DocumentosRelacionadosTramite> it = this.tramite.getUrlDocumentosRelacionados().iterator();
        while (it.hasNext()) {
            DocumentosRelacionadosTramite documentosRel = it.next();
            documentosRel.setTramite(this.tramite);
            this.controlador.guardarDocumentosRelacionadosTramite(documentosRel);
        }
        Iterator<PasoProcesal> it1 = this.tramite.getPaso().iterator();
        while (it1.hasNext()) {
            PasoProcesal paso = it1.next();
            paso.setTramite(this.tramite);
            this.controlador.guardarPaso(paso);
            Iterator<DocumentosRelacionadosTramite> it2 = paso.getUrlDocumentosRelacionadosPaso().iterator();
            while (it2.hasNext()) {
                DocumentosRelacionadosTramite documentosRelPaso = it2.next();
                documentosRelPaso.setPaso(paso);
                this.controlador.guardarDocumentosRelacionadosTramite(documentosRelPaso);
            }
        }
    }

    /**
     * Este método actualiza la agenda con la información de la base 
     * de datos
     */
    public void actualizarAlertaAgenda() {
        try {
            this.datosAgendaAlerta.setTarea(this.controlador.listarProximasTareas());
            this.jTableTablaAlertaTareas.updateUI();
            this.datosPasosAgendaAlerta.setData(this.controlador.listarProximosPasos());
            this.jTableTablaAlertaPasos.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este metodo permite inicializar ls tareas
     */
    public void inicializarTarea() {
        this.jTextFieldNumeroAgregarTarea.setText("");
        this.jDateChooserFechaRealizacionTarea.setDate(null);
        this.jTextFieldLugarAgregarTarea.setText("");
        this.jTextAreaDescripcionTarea.setText("");
        this.jTextFieldApoderadoTarea.setText("");
        this.jTextFieldApoderadoTarea.setEditable(false);
        this.jSpinFieldHoraTarea.setValue(0);
        this.jSpinFieldMinutosTarea.setValue(0);
        this.jSpinFieldHoraTarea.setEnabled(true);
        this.jSpinFieldMinutosTarea.setEnabled(true);
        this.jButtonAceptarAgregarTarea.setVisible(true);
        this.jButtonModificarTarea.setVisible(false);
        this.jButtonGuardarModificacionTarea.setVisible(false);
        this.jButtonEliminarTarea.setVisible(false);
        this.jButtonCrearDocumentosRelacionadosTarea.setEnabled(false);
        this.jButtonagregarDocumentosRelacionadosTrarea.setEnabled(true);
        this.jTextFieldNumeroAgregarTarea.setEnabled(true);
        this.jDateChooserFechaRealizacionTarea.setEnabled(true);
        this.jTextAreaDescripcionTarea.setEnabled(true);
        this.jTextFieldApoderadoTarea.setEnabled(true);
        this.jButtonBuscarApoderadoTarea.setEnabled(true);
        this.jTextFieldLugarAgregarTarea.setEnabled(true);
        this.listaDocumentosRelacionadosTramiteTarea = new ArrayList<DocumentosRelacionadosTramite>();
        this.datosRutaTarea.setDirecciones(this.listaDocumentosRelacionadosTramiteTarea);
        this.jTableDocumentosRelacionadosTarea.updateUI();
        this.jButtonAceptarAgregarTarea.setEnabled(true);

    }

    /**
     * Este metodo setea los valores de una tarea
     * @param tares 
     */
    public void mostrarTarea(Tarea tares) {
        this.jTextFieldNumeroAgregarTarea.setText(tarea.getNumero());
        this.jDateChooserFechaRealizacionTarea.setDate(tarea.getFecha());
        String hora = tarea.getHora();
        this.jSpinFieldHoraTarea.setValue(Integer.parseInt(hora.substring(0, 2)));
        this.jSpinFieldMinutosTarea.setValue(Integer.parseInt(hora.substring(3, 5)));
        this.jTextFieldLugarAgregarTarea.setText(tarea.getLugar());
        this.jTextAreaDescripcionTarea.setText(tarea.getDescripcion());
        this.jTextFieldApoderadoTarea.setText(tarea.getEncargado().getNombre());
        this.datosRutaTarea.setDirecciones(tarea.getUrlDocumentosRelacionados());
        this.listaDocumentosRelacionadosTramiteTarea = tarea.getUrlDocumentosRelacionados();
        this.datosRutaTarea.setDirecciones(this.listaDocumentosRelacionadosTramiteTarea);
        this.encargadoTarea = tarea.getEncargado();
        this.jTableDocumentosRelacionadosTarea.updateUI();
        this.jDialogAgregarTarea.setVisible(true);
        
    }

    /**
     * Este metodo inhabilita la tarea
     */
    public void inhabilitarTarea() {
        this.jButtonModificarTarea.setVisible(false);
        this.jButtonEliminarTarea.setVisible(false);
        this.jButtonCrearDocumentosRelacionadosTarea.setEnabled(false);
        this.jButtonagregarDocumentosRelacionadosTrarea.setEnabled(false);
        this.jButtonEliminarDocumentoTarea.setEnabled(false);
        this.jTextFieldLugarAgregarTarea.setEnabled(false);
        this.jTextAreaDescripcionTarea.setEnabled(false);
        this.jTextFieldNumeroAgregarTarea.setEnabled(false);
        this.jDateChooserFechaRealizacionTarea.setEnabled(false);
        this.jTextFieldApoderadoTarea.setEnabled(false);
        this.jButtonBuscarApoderadoTarea.setEnabled(false);
        this.jTextFieldLugarAgregarTarea.setEnabled(false);
        this.jButtonAceptarAgregarTarea.setVisible(false);
        this.jButtonGuardarModificacionTarea.setVisible(false);
        this.jButtonGuardarModificacionTarea.setVisible(false);
        this.jButtonEliminarDocumentoTarea.setEnabled(false);
        this.jSpinFieldHoraTarea.setEnabled(false);
        this.jSpinFieldMinutosTarea.setEnabled(false);


    }

    public void actualizarPasosProcesales() {
        this.datosPasosAgenda.setData(this.controlador.listarPasosProcesales());
        this.jTablePasosAgenda.updateUI();
    }

    private void eliminarPasoProcesalPaso(PasoProcesal paso) {
        Iterator<DocumentosRelacionadosTramite> it = paso.getUrlDocumentosRelacionadosPaso().iterator();
        while (it.hasNext()) {
            DocumentosRelacionadosTramite docRelacionadosPaso = it.next();
            this.controlador.eliminarElementosRelacionados(docRelacionadosPaso);
        }
        this.controlador.eliminarPasoProcesal(paso);
        Conexiones.getInstance().refresh(this.causa);
    }

    private void guardarPasosCausa() {
        //por que guarda nuevamente la causa???
        this.controlador.guardarCausa(this.causa);
        Iterator<PasoProcesal> it = this.causa.getPasoProcesals().iterator();
        while (it.hasNext()) {
            PasoProcesal paso = it.next();
            paso.setCausa(this.causa);
            this.controlador.guardarPaso(paso);
            Iterator<DocumentosRelacionadosTramite> it1 = paso.getUrlDocumentosRelacionadosPaso().iterator();
         while (it1.hasNext()) {
                DocumentosRelacionadosTramite documentosRelPaso = it1.next();
                documentosRelPaso.setPaso(paso);
                this.controlador.guardarDocumentosRelacionadosTramite(documentosRelPaso);
            }
        }
    }

    /**
     * Este método actualiza la lista de Apoderados con la información de la base 
     * de datos que coincide con los criterios de busqueda ingresados
     */
    private void buscarAbogadosCausa() {
        try {
            this.datosPersonas.setData(this.controlador.buscarAbogados(this.jComboBoxTipoDocumentoBuscarApoderadoCausa.getSelectedItem().toString(), this.jTextFieldDocumentoBuscarApoderadoCausa.getText(), this.jTextFieldNombreBuscarApoderadoCausa.getText(), this.jTextFieldDireccionBuscarApoderadoCausa.getText(), this.jTextFieldTelefonoBuscarApoderadoCausa.getText(), this.jTextFieldEmailBuscarApoderadoCausa.getText()));
            this.jTableBuscarApoderadoCausa.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este método actualiza la lista de Apoderados con la información de la base 
     * de datos que coincide con los criterios de busqueda ingresados
     */
    private void buscarAbogadosContraparteCausa() {
        try {
            this.datosPersonas.setData(this.controlador.buscarAbogados(this.jComboBoxTipoDocumentoBuscarContraparteCausa1.getSelectedItem().toString(), this.jTextFieldDocumentoBuscarContraparteCausa1.getText(), this.jTextFieldNombreBuscarContraparteCausa1.getText(), this.jTextFieldDireccionBuscarContraparteCausa1.getText(), this.jTextFieldTelefonoBuscarContraparteCausa1.getText(), this.jTextFieldEmailBuscarContraparteCausa1.getText()));
            this.jTableBuscarAbogadoContraparteCausa.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    private void buscarContraparteCausa() {
        try {
            this.datosPersonas.setData(this.controlador.buscarPersonas(this.jComboBoxTipoDocumentoBuscarContraparteCausa.getSelectedItem().toString(), this.jTextFieldDocumentoBuscarContraparteCausa.getText(), this.jTextFieldNombreBuscarContraparteCausa.getText(), this.jTextFieldDireccionBuscarContraparteCausa.getText(), this.jTextFieldTelefonoBuscarContraparteCausa.getText(), this.jTextFieldEmailBuscarContraparteCausa.getText()));
            this.jTableBuscarContraparteCausa.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    private void buscarClienteCausa() {
        try {
            this.datosPersonas.setData(this.controlador.buscarPersonas(this.jComboBoxTipoDocumentoBuscarClienteCausa.getSelectedItem().toString(), this.jTextFieldDocumentoBuscarClienteCausa.getText(), this.jTextFieldNombreBuscarClienteCausa.getText(), this.jTextFieldDireccionBuscarClienteCausa.getText(), this.jTextFieldTelefonoBuscarClienteCausa.getText(), this.jTextFieldEmailBuscarClienteCausa.getText()));
            this.jTableBuscarClienteCausa.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    private void actualizarApoderadoCausa() {
        try {
            this.datosPersonas.setData(this.controlador.listarAbogados());
            this.jTableBuscarApoderadoCausa.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    private void actualizarAbogadoContraparteCausa() {
        try {
            this.datosPersonas.setData(this.controlador.listarAbogados());
            this.jTableBuscarAbogadoContraparteCausa.updateUI();
        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }

    private void actualizarPersonasCausa(JTable tabla) {
        try {
            this.datosPersonas.setData(this.controlador.listarPersonas());
            tabla.updateUI();

        } catch (Exception ex) {
            this.mostrarError(ex);
        }
    }
    
    private void cambiarEstadoPasosAgenda(boolean estado, String botonSalir){
        this.jButtonModificarDatosPaso.setVisible(estado);
        this.jButton5.setVisible(estado);
        this.jButton4.setText(botonSalir);
        this.jButtonEliminarDocumentosPAso1.setEnabled(estado);
        this.jButtonCrearDocumentoPaso1.setEnabled(estado);
        this.jButtonAgregarDocumentoPaso1.setEnabled(estado);
}
    
    @Override
    public Image getIconImage() {
        Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource("imagenes/chiquitas/balanza.png"));
        return retValue;
    }
    
}
